Commit ea2da05c authored by Sean Cannella's avatar Sean Cannella Committed by Sara Golemon

fix folly compilation on FreeBSD

Summary:
- fix folly compilation on FreeBSD

Github Author: Martin Matuska <martin@matuska.org>

Test Plan: - compiled

Reviewed By: tudorb@fb.com

FB internal diff: D896747
parent 5f4c6672
......@@ -53,10 +53,12 @@ int fsyncNoInt(int fd) {
}
int fdatasyncNoInt(int fd) {
#ifndef __APPLE__
return wrapNoInt(fdatasync, fd);
#else
#if defined(__APPLE__)
return wrapNoInt(fcntl, fd, F_FULLFSYNC);
#elif defined(__FreeBSD__)
return wrapNoInt(fsync, fd);
#else
return wrapNoInt(fdatasync, fd);
#endif
}
......
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