Skip to content

Commit

Permalink
Rebase and include changes from #56
Browse files Browse the repository at this point in the history
  • Loading branch information
keenanlang committed Sep 18, 2024
1 parent 7006ba5 commit c1732b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion asApp/src/save_restore.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
#else
#include <windows.h>
#include "tr_dirent.h" /* for dirList */
#include <io.h> /* for _commit */
#endif
#include <string.h>
#include <ctype.h>
Expand Down Expand Up @@ -1916,7 +1917,7 @@ STATIC int write_it(char *filename, struct chlist *plist)
if (errno) myPrintErrno("write_it", __FILE__, __LINE__);
}
#elif defined(_WIN32)
/* WIN32 has no real equivalent to fsync? */
n = _commit(_fileno(out_fd)); /* Flush directly to disk, skip OS buffers */
#else
n = fsync(fileno(out_fd));
if (n && (errno == ENOTSUP)) {
Expand Down

0 comments on commit c1732b4

Please sign in to comment.