Bug 666420 - Upgrade to SQLite 3.7.7.1 - Force using fsync on Android.
authorMarco Bonardo <mbonardo@mozilla.com>
Fri, 26 Aug 2011 13:43:45 +0200
changeset 75945 19dff2b200b94c3a7e42c88cc0be9d24717a556c
parent 75944 43cb0ce4fe9ec1875411e8a9ef6a3b93eb9ee1b9
child 75946 a00e5e89f3d5fdb2e568f4a675090c63d83f0d4f
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
bugs666420
milestone9.0a1
Bug 666420 - Upgrade to SQLite 3.7.7.1 - Force using fsync on Android. r=sdwilsh
db/sqlite3/src/Makefile.in
--- a/db/sqlite3/src/Makefile.in
+++ b/db/sqlite3/src/Makefile.in
@@ -128,16 +128,18 @@ ifeq ($(OS_ARCH),OS2)
 ifdef MOZ_OS2_HIGH_MEMORY
 DEFINES += -DOS2_HIGH_MEMORY
 endif
 endif
 
 ifeq ($(OS_TARGET),Android)
 # default to user readable only to fit Android security model
 DEFINES += -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600
+# Force using fsync, since there is not fdatasync in ndk 5.
+DEFINES += -Dfdatasync=fsync
 endif
 
 include $(topsrcdir)/config/rules.mk
 
 # next line allows use of MOZ_OBJDIR in .mozconfig with older gcc on BeOS, maybe others
 LOCAL_INCLUDES += -I$(srcdir)
 
 ifeq ($(OS_ARCH),OS2)