Commit 607f5f95 authored by Orvid King's avatar Orvid King Committed by facebook-github-bot-4

Use fsync on MSVC, as fdatasync doesn't exist

Summary: Closes #266

Reviewed By: @yfeldblum

Differential Revision: D2283774

Pulled By: @sgolemon
parent 4b019355
......@@ -65,7 +65,7 @@ int dup2NoInt(int oldfd, int newfd) {
int fdatasyncNoInt(int fd) {
#if defined(__APPLE__)
return wrapNoInt(fcntl, fd, F_FULLFSYNC);
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(_MSC_VER)
return wrapNoInt(fsync, fd);
#else
return wrapNoInt(fdatasync, fd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment