Commit ac0e0d5f authored by Ben Cheng's avatar Ben Cheng
Browse files

Don't call malloc_usable_size() for host builds.

As it will break windows builds.

Change-Id: Ifb58a90b11ce9379b372c038cfb99d418374529d
parent c4417305
......@@ -27,8 +27,7 @@ common_sqlite_flags := \
-DSQLITE_OMIT_BUILTIN_TEST \
-DSQLITE_OMIT_COMPILEOPTION_DIAGS \
-DSQLITE_OMIT_LOAD_EXTENSION \
-DSQLITE_DEFAULT_FILE_PERMISSIONS=0600 \
-DHAVE_MALLOC_USABLE_SIZE
-DSQLITE_DEFAULT_FILE_PERMISSIONS=0600
common_src_files := sqlite3.c
......@@ -41,7 +40,8 @@ ifneq ($(TARGET_ARCH),arm)
LOCAL_LDLIBS += -lpthread -ldl
endif
LOCAL_CFLAGS += $(common_sqlite_flags) -DUSE_PREAD64 -Dfdatasync=fdatasync
LOCAL_CFLAGS += $(common_sqlite_flags) -DUSE_PREAD64 -Dfdatasync=fdatasync \
-DHAVE_MALLOC_USABLE_SIZE
LOCAL_SHARED_LIBRARIES := libdl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment