From 9ae188f4c73e5a9130ba36df296e05ebcf872068 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Fri, 20 May 2016 12:05:14 +0200 Subject: [PATCH] fix compilation error --- coreapi/Makefile.am | 1 - coreapi/sqlite3_bctbx_vfs.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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; }