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
}
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
}