diff --git a/coreapi/Makefile.am b/coreapi/Makefile.am index a4083deeb..ae407244b 100644 --- a/coreapi/Makefile.am +++ b/coreapi/Makefile.am @@ -91,7 +91,6 @@ liblinphone_la_SOURCES=\ sal.c \ siplogin.c \ sipsetup.c \ - sqlite3_bctbx_vfs.c \ xml2lpc.c \ xml.c \ xmlrpc.c \ diff --git a/coreapi/sqlite3_bctbx_vfs.c b/coreapi/sqlite3_bctbx_vfs.c index 04203ed2c..00de686d6 100644 --- a/coreapi/sqlite3_bctbx_vfs.c +++ b/coreapi/sqlite3_bctbx_vfs.c @@ -157,7 +157,9 @@ static int sqlite3bctbx_DeviceCharacteristics(sqlite3_file *p){ * @return SQLITE_OK on success, SALITE_NOTFOUND otherwise. */ static int sqlite3bctbx_FileControl(sqlite3_file *p, int op, void *pArg){ +#ifdef SQLITE_FCNTL_MMAP_SIZE if (op == SQLITE_FCNTL_MMAP_SIZE) return SQLITE_OK; +#endif return SQLITE_NOTFOUND; }