apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <...@apache.org>
Subject fdatasync on mac
Date Sat, 01 Apr 2017 01:22:16 GMT
fdatasync on Mac is a mess.  What I’ve been hacking at is described in
https://bugs.freedesktop.org/show_bug.cgi?id=74873
where they face the same issue.

My inclination is to steer clear of this mess.  We can disable fdatasync on mac
with a simple patch:

$ svn diff 
Index: configure.in
===================================================================
--- configure.in	(revision 1789687)
+++ configure.in	(working copy)
@@ -573,6 +573,11 @@
        OSDIR="unix"
        eolstr="\\n"
        ;;
+   *darwin* ) 
+       ac_cv_func_fdatasync="no" # Mac OS X wrongly reports it has fdatasync()
+       OSDIR="unix"
+       eolstr="\\n"
+       ;;
    *)
        OSDIR="unix"
        eolstr="\\n”

Comments?  Objections?

— 
Nick Kew
Mime
View raw message