aboutsummaryrefslogblamecommitdiff
path: root/databases/iowow/files/patch-src_platform_unix_unix.c
blob: 62529cbc5fe42137e50c6f303b4f318963bc397c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                               








                                                                
--- src/platform/unix/unix.c.orig	2018-05-19 14:09:04 UTC
+++ src/platform/unix/unix.c
@@ -314,7 +314,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) && __FreeBSD_version > 1100501
   if (fdatasync(fh) == -1) {
     return iwrc_set_errno(IW_ERROR_IO_ERRNO, errno);
   }