Ver Fonte

Fix for sqlite build error on macos NDK

Mark Sibly há 7 anos atrás
pai
commit
2cfcd993a1
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      modules/sqlite/sqlite-amalgamation/sqlite3.c

+ 5 - 2
modules/sqlite/sqlite-amalgamation/sqlite3.c

@@ -31003,8 +31003,11 @@ static struct unix_syscall {
 #endif
 #endif
 #define osLstat      ((int(*)(const char*,struct stat*))aSyscall[27].pCurrent)
 #define osLstat      ((int(*)(const char*,struct stat*))aSyscall[27].pCurrent)
 
 
-  { "ioctl",         (sqlite3_syscall_ptr)ioctl,          0 },
-#define osIoctl ((int(*)(int,int,...))aSyscall[28].pCurrent)
+//  { "ioctl",         (sqlite3_syscall_ptr)ioctl,          0 },
+//#define osIoctl ((int(*)(int,int,...))aSyscall[28].pCurrent)
+    
+    { "ioctl",       (sqlite3_syscall_ptr)0,              0 },
+#define osIoctl ioctl
 
 
 }; /* End of the overrideable system calls */
 }; /* End of the overrideable system calls */