Skip to content

Commit

Permalink
Merge pull request #68 from epics-modules/include-56
Browse files Browse the repository at this point in the history
Rebase and include changes from #56
  • Loading branch information
keenanlang authored Sep 18, 2024
2 parents 7006ba5 + c1732b4 commit 8cba03f
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 8cba03f

Please sign in to comment.