浏览代码

Fixed linux sqlite build issue.

Mark Sibly 6 年之前
父节点
当前提交
49f8d8e999
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 4 1
      modules/sqlite/sqlite-amalgamation/sqlite3.c
  2. 1 0
      modules/sqlite/sqlite-amalgamation/sqlite3.h

+ 4 - 1
modules/sqlite/sqlite-amalgamation/sqlite3.c

@@ -23,11 +23,14 @@
 # define SQLITE_PRIVATE static
 # define SQLITE_PRIVATE static
 #endif
 #endif
 
 
-//Mark was here! tmp fix for androi NDK v 15.2.4203891
+//Mark was here! tmp fix for android NDK v 15.2.4203891
 #if __ANDROID__
 #if __ANDROID__
 #include <sys/mman.h>
 #include <sys/mman.h>
 #endif
 #endif
 
 
+// Mark was here! Disable dlopen stuff
+#define SQLITE_OMIT_LOAD_EXTENSION 1
+
 /************** Begin file ctime.c *******************************************/
 /************** Begin file ctime.c *******************************************/
 /*
 /*
 ** 2010 February 23
 ** 2010 February 23

+ 1 - 0
modules/sqlite/sqlite-amalgamation/sqlite3.h

@@ -34,6 +34,7 @@
 #define SQLITE3_H
 #define SQLITE3_H
 #include <stdarg.h>     /* Needed for the definition of va_list */
 #include <stdarg.h>     /* Needed for the definition of va_list */
 
 
+// Mark was here! Disable dlopen stuff
 #define SQLITE_OMIT_LOAD_EXTENSION 1
 #define SQLITE_OMIT_LOAD_EXTENSION 1
 /*
 /*
 ** Make sure we can call this stuff from C++.
 ** Make sure we can call this stuff from C++.