summaryrefslogtreecommitdiff
path: root/databases/iowow/files/patch-src_platform_unix_unix.c
blob: 7e58d255962bd079adc0ed05e28fb19eb4fcf561 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/platform/unix/unix.c.orig	2021-09-03 09:03:05 UTC
+++ src/platform/unix/unix.c
@@ -355,7 +355,7 @@ iwrc iwp_fdatasync(HANDLE fh) {
   if (fcntl(fh, F_FULLFSYNC) == -1) {
     return iwrc_set_errno(IW_ERROR_IO_ERRNO, errno);
   }
-#else
+#elif defined(__FreeBSD_version)
   if (fdatasync(fh) == -1) {
     return iwrc_set_errno(IW_ERROR_IO_ERRNO, errno);
   }