aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2013-08-26 14:30:25 +0000
committerdan <dan@noemail.net>2013-08-26 14:30:25 +0000
commit4dd5144366484feb8a108739751f9ed8d9f332d3 (patch)
treee62d463ef6a11dd597ea15fd3af1a2c0726d6a8e /src/os_unix.c
parentf68060839c5e10a5a75180510b0a10ef85e7487e (diff)
downloadsqlite-4dd5144366484feb8a108739751f9ed8d9f332d3.tar.gz
sqlite-4dd5144366484feb8a108739751f9ed8d9f332d3.zip
Fix for builds with both SQLITE_OMIT_WAL and SQLITE_MAX_MMAP_SIZE=0 defined.
FossilOrigin-Name: edd5dbdc3239fc88799b822941603fcc828ecbb6
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 152bf9a11..c5152e5a5 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -449,6 +449,7 @@ static struct unix_syscall {
{ "fchown", (sqlite3_syscall_ptr)posixFchown, 0 },
#define osFchown ((int(*)(int,uid_t,gid_t))aSyscall[20].pCurrent)
+#if !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0
{ "mmap", (sqlite3_syscall_ptr)mmap, 0 },
#define osMmap ((void*(*)(void*,size_t,int,int,int,off_t))aSyscall[21].pCurrent)
@@ -461,6 +462,7 @@ static struct unix_syscall {
{ "mremap", (sqlite3_syscall_ptr)0, 0 },
#endif
#define osMremap ((void*(*)(void*,size_t,size_t,int,...))aSyscall[23].pCurrent)
+#endif
}; /* End of the overrideable system calls */