aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <>2021-06-15 18:46:06 +0000
committerdrh <>2021-06-15 18:46:06 +0000
commitf54e79405ec3edd606400a08ff84198824927093 (patch)
treeda4175610e95ad4c8583a4278b488fba7ad0dea7 /src/os_unix.c
parent17adf4e5a1e5326fe92d7e224b84a8f24f33b2b5 (diff)
downloadsqlite-f54e79405ec3edd606400a08ff84198824927093.tar.gz
sqlite-f54e79405ec3edd606400a08ff84198824927093.zip
Fix some minor #ifdef issues so that all of the supported compile-time
options continue to build. FossilOrigin-Name: d8cf407046f20b0398f19acd0dab6acb6c742911e21e1003cb5b194dd668d98e
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 750b3e170..d45fdabab 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -8068,6 +8068,7 @@ int sqlite3_os_init(void){
}
unixBigLock = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1);
+#ifndef SQLITE_OMIT_WAL
/* Validate lock assumptions */
assert( SQLITE_SHM_NLOCK==8 ); /* Number of available locks */
assert( UNIX_SHM_BASE==120 ); /* Start of locking area */
@@ -8083,6 +8084,8 @@ int sqlite3_os_init(void){
** DMS UNIX_SHM_BASE+8 128
*/
assert( UNIX_SHM_DMS==128 ); /* Byte offset of the deadman-switch */
+#endif
+
return SQLITE_OK;
}