aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-01-08 22:18:00 +0000
committerdrh <drh@noemail.net>2016-01-08 22:18:00 +0000
commit24dbeae6f5d736074b16f1f432d209dddd2fb32a (patch)
tree1235d1c0645a21ceae8f692765e42e5613728a5b /src
parent5a1fb1885ad793e663323b6c97f94ed3b78dce05 (diff)
downloadsqlite-24dbeae6f5d736074b16f1f432d209dddd2fb32a.tar.gz
sqlite-24dbeae6f5d736074b16f1f432d209dddd2fb32a.zip
More #ifdef fixes for the unix VFS.
FossilOrigin-Name: 122c111e360761de8166e16ca151cb7260ee9bf8
Diffstat (limited to 'src')
-rw-r--r--src/os_unix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index c41b6c7c2..bf37ae69e 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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 },