authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-03-08 13:45:16+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-03-23 17:17:28+00:00
logbab66235b94643e10dfc58db38c8ea4b8be46c37
tree70f2e510d0185d8344d1f62a0eb95de7cd0af83d
parentdc44fe053c609f389e375f6857f96b6bb3794897

stage1: Remove fflush on file open for reading

On NetBSD this caused the libuserland compilation to fail. Closes #3719

1 files changed, 0 insertions(+), 3 deletions(-)

src/os.cpp-3
...@@ -1161,9 +1161,6 @@ Error os_update_file(Buf *src_path, Buf *dst_path) {...@@ -1161,9 +1161,6 @@ Error os_update_file(Buf *src_path, Buf *dst_path) {
1161 fclose(dst_libc_file);1161 fclose(dst_libc_file);
1162 return err;1162 return err;
1163 }1163 }
1164 if (fflush(src_libc_file) == -1) {
1165 return ErrorUnexpected;
1166 }
1167 if (fflush(dst_libc_file) == -1) {1164 if (fflush(dst_libc_file) == -1) {
1168 return ErrorUnexpected;1165 return ErrorUnexpected;
1169 }1166 }