summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/syscall.c')
-rw-r--r--libglusterfs/src/syscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/syscall.c b/libglusterfs/src/syscall.c
index 7236958677d..48418091676 100644
--- a/libglusterfs/src/syscall.c
+++ b/libglusterfs/src/syscall.c
@@ -311,6 +311,8 @@ sys_fdatasync (int fd)
{
#ifdef GF_DARWIN_HOST_OS
return fcntl (fd, F_FULLFSYNC);
+#elif __FreeBSD__
+ return fsync (fd);
#else
return fdatasync (fd);
#endif