diff options
author | dan <dan@noemail.net> | 2013-10-31 18:49:58 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2013-10-31 18:49:58 +0000 |
commit | f52a4690b05bd47bc42a7e963d8516160cc3dce5 (patch) | |
tree | 563536d939ac3a8c67a5a37315df4a943919bafd /src/os_unix.c | |
parent | 293566eaf29579527c8cb17a967ee81dfb0724f1 (diff) | |
download | sqlite-f52a4690b05bd47bc42a7e963d8516160cc3dce5.tar.gz sqlite-f52a4690b05bd47bc42a7e963d8516160cc3dce5.zip |
Fix a problem in os_unix.c causing compilation failure if SQLITE_DEBUG and SQLITE_MAX_MMAP_SIZE=0 are both defined.
FossilOrigin-Name: 090db8c81d8ca216277d11c8c4751c0a37801524
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index cd8cec004..501b1b769 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1890,7 +1890,9 @@ end_unlock: ** the requested locking level, this routine is a no-op. */ static int unixUnlock(sqlite3_file *id, int eFileLock){ +#if SQLITE_MAX_MMAP_SIZE>0 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 ); +#endif return posixUnlock(id, eFileLock, 0); } |