projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b01935
)
Use fsync on MSVC, as fdatasync doesn't exist
author
Orvid King
<blah38621@gmail.com>
Tue, 28 Jul 2015 22:15:49 +0000
(15:15 -0700)
committer
facebook-github-bot-4
<folly-bot@fb.com>
Tue, 28 Jul 2015 23:22:10 +0000
(16:22 -0700)
Summary: Closes #266
Reviewed By: @yfeldblum
Differential Revision:
D2283774
Pulled By: @sgolemon
folly/FileUtil.cpp
patch
|
blob
|
history
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);