fix sqlite3 compilation for ndk>=14
This commit is contained in:
parent
cbdfebc632
commit
e9560cec98
1 changed files with 15 additions and 0 deletions
15
submodules/externals/sqlite3/sqlite3.c
vendored
15
submodules/externals/sqlite3/sqlite3.c
vendored
|
@ -30269,6 +30269,21 @@ SQLITE_PRIVATE const char *sqlite3OpcodeName(int i){
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#if !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0
|
#if !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0
|
||||||
# include <sys/mman.h>
|
# include <sys/mman.h>
|
||||||
|
|
||||||
|
#if defined(__ANDROID__)
|
||||||
|
|
||||||
|
/*this block is to workaround a bug introduced by google with its unified headers in NDK 14.*/
|
||||||
|
|
||||||
|
#include "android/api-level.h"
|
||||||
|
|
||||||
|
# ifdef __ANDROID_API_O__ /*present with unified headers introduced with NDK14*/
|
||||||
|
# if __ANDROID_API__ < 21
|
||||||
|
/*mmap declaration is missing below api 21 in unified headers, but not in normal headers*/
|
||||||
|
extern void* mmap(void*, size_t, int, int, int, off_t);
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif /*defined(ANDROID)*/
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SQLITE_ENABLE_LOCKING_STYLE
|
#if SQLITE_ENABLE_LOCKING_STYLE
|
||||||
|
|
Loading…
Reference in a new issue