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 433516 776e2f2b53a2138d84e8c81a24b34c1f191b0c50
parent 433515 a952a23d3f140766157debe6e8fce757f6b67a97
child 433517 0ad97b0a82c4341736eb3aad6f155cc6d30aec5c
push id1567
push userjlorenzo@mozilla.com
push dateThu, 02 Nov 2017 12:36:05 +0000
treeherdermozilla-release@e512c14a0406 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1120444
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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 ========================================================