Bug 1120444 - Use fdatasync properly instead of fsync where appropriate. r=glandium
authorLiang Wei <liangwei012@yeah.net>
Fri, 01 Sep 2017 09:03:22 +0200
changeset 666673 776e2f2b53a2138d84e8c81a24b34c1f191b0c50
parent 666672 a952a23d3f140766157debe6e8fce757f6b67a97
child 666674 0ad97b0a82c4341736eb3aad6f155cc6d30aec5c
child 666830 8c592ef63c6ea0b76bbd5e7457af1495a8fb0ea5
child 666831 d27a367b68eb9f4198f12d74b4e43f9edb40ae2c
child 667209 1475c5ebbba24fc3c94e65af03cd1a707be1a60a
push id80486
push userbmo:tlin@mozilla.com
push dateTue, 19 Sep 2017 03:52:30 +0000
reviewersglandium
bugs1120444
milestone57.0a1
Bug 1120444 - Use fdatasync properly instead of fsync where appropriate. r=glandium MozReview-Commit-ID: 4ObwOvWhrhx
old-configure.in
--- a/old-configure.in
+++ b/old-configure.in
@@ -3692,16 +3692,22 @@ then
         )
     ])
     AC_MSG_RESULT($ac_cv_sqlite_dbstat_vtab)
     CFLAGS="$_SAVE_CFLAGS"
     LIBS="$_SAVE_LIBS"
     if test "x$ac_cv_sqlite_dbstat_vtab" = "xno"; then
         AC_MSG_ERROR([System SQLite library is not compiled with SQLITE_ENABLE_DBSTAT_VTAB.])
     fi
+else
+    dnl ==============================
+    dnl === SQLite fdatasync check ===
+    dnl ==============================
+    dnl Check to see if fdatasync is available
+    AC_CHECK_FUNC(fdatasync)
 fi
 
 if test -n "$MOZ_SYSTEM_SQLITE"; then
     AC_DEFINE(MOZ_SYSTEM_SQLITE)
 fi
 AC_SUBST(MOZ_SYSTEM_SQLITE)
 
 dnl ========================================================