소스 검색

Fix for sqlite build error on macos NDK

Mark Sibly 7 년 전
부모
커밋
2cfcd993a1
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  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
 #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 */