From: Orvid King Date: Tue, 28 Jul 2015 22:15:49 +0000 (-0700) Subject: Use fsync on MSVC, as fdatasync doesn't exist X-Git-Tag: v0.53.0~45 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=607f5f95a450000068a6d68c36dd5fb6ae39c984;p=folly.git Use fsync on MSVC, as fdatasync doesn't exist Summary: Closes #266 Reviewed By: @yfeldblum Differential Revision: D2283774 Pulled By: @sgolemon --- diff --git a/folly/FileUtil.cpp b/folly/FileUtil.cpp index a62b365e..728f1d26 100644 --- a/folly/FileUtil.cpp +++ b/folly/FileUtil.cpp @@ -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);