1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

More #ifdef fixes for the unix VFS.

FossilOrigin-Name: 122c111e360761de8166e16ca151cb7260ee9bf8
This commit is contained in:
drh
2016-01-08 22:18:00 +00:00
parent 5a1fb1885a
commit 24dbeae6f5
3 changed files with 12 additions and 8 deletions

View File

@@ -446,7 +446,7 @@ static struct unix_syscall {
#if !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0
{ "munmap", (sqlite3_syscall_ptr)munmap, 0 },
#else
{ "munmap", (sqlite3_syscall_ptr), 0 },
{ "munmap", (sqlite3_syscall_ptr)9, 0 },
#endif
#define osMunmap ((void*(*)(void*,size_t))aSyscall[23].pCurrent)
@@ -457,7 +457,11 @@ static struct unix_syscall {
#endif
#define osMremap ((void*(*)(void*,size_t,size_t,int,...))aSyscall[24].pCurrent)
#if !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0
{ "getpagesize", (sqlite3_syscall_ptr)unixGetpagesize, 0 },
#else
{ "getpagesize", (sqlite3_syscall_ptr)0, 0 },
#endif
#define osGetpagesize ((int(*)(void))aSyscall[25].pCurrent)
{ "readlink", (sqlite3_syscall_ptr)readlink, 0 },