2
0
Эх сурвалжийг харах

Fix for sqlite build error on macos NDK

Mark Sibly 7 жил өмнө
parent
commit
2cfcd993a1

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

@@ -31003,8 +31003,11 @@ static struct unix_syscall {
 #endif
 #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 */