1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

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
This commit is contained in:
dan
2013-10-31 18:49:58 +00:00
parent 293566eaf2
commit f52a4690b0
3 changed files with 10 additions and 8 deletions

View File

@@ -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);
}