aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-12-22 21:48:50 +0000
committerdrh <drh@noemail.net>2010-12-22 21:48:50 +0000
commitb469f46083520476d9b328f17086e97c5590cd8c (patch)
tree6fb7111bf22af3a1b85026c3cf1a5202906d8cba /src/os_unix.c
parent2a58e9cc32dad4e437ba880a951aa06bb69691e5 (diff)
downloadsqlite-b469f46083520476d9b328f17086e97c5590cd8c.tar.gz
sqlite-b469f46083520476d9b328f17086e97c5590cd8c.zip
Do not include &lt;sys/mmap.h&gt; if SQLITE_OMIT_WAL is defined.
FossilOrigin-Name: b82e85ece94c8e25c1dc3251f5444a295fbf8c89
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 ba699632d..edc716c98 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -119,7 +119,9 @@
#include <time.h>
#include <sys/time.h>
#include <errno.h>
+#ifndef SQLITE_OMIT_WAL
#include <sys/mman.h>
+#endif
#if SQLITE_ENABLE_LOCKING_STYLE
# include <sys/ioctl.h>