OS X is a BSD here
authorHeikki Lindholm <holin@iki.fi>
Sat, 17 Oct 2009 19:56:20 +0000 (19:56 +0000)
committerHeikki Lindholm <holin@iki.fi>
Sat, 17 Oct 2009 19:56:20 +0000 (19:56 +0000)
src/util/disk.c

index fcbb8c0a7db5216930578bcc9a4a4ef3212f95ca..c3d6f650b84a9ba01e7688fae63bc58ee7730efb 100644 (file)
@@ -1584,7 +1584,7 @@ GNUNET_DISK_file_sync (const struct GNUNET_DISK_FileHandle *h)
   if (ret != GNUNET_OK)
     SetErrnoFromWinError (GetLastError ());
   return ret;
-#elif FREEBSD || OPENBSD
+#elif FREEBSD || OPENBSD || OSX
   return fsync (h->fd) == -1 ? GNUNET_SYSERR : GNUNET_OK;
 #else
   return fdatasync (h->fd) == -1 ? GNUNET_SYSERR : GNUNET_OK;