projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use fsync on MSVC, as fdatasync doesn't exist
[folly.git]
/
folly
/
FileUtil.cpp
diff --git
a/folly/FileUtil.cpp
b/folly/FileUtil.cpp
index a62b365e4cceab729a89a9503dfa78f3129d1ec5..728f1d268dce82aa4f47bef8ee4dff14c0c19b38 100644
(file)
--- 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);