diff options
author | dan <dan@noemail.net> | 2020-05-06 20:45:11 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2020-05-06 20:45:11 +0000 |
commit | 7a623e1d25f471394ac5550c6eac496ac70fbc1d (patch) | |
tree | 2e663d83728a6f73fbde8fbc427510b20349aa17 /src/os_unix.c | |
parent | 7bb8b8a4f743c1bab707a01ba61c7f1fe3695195 (diff) | |
download | sqlite-7a623e1d25f471394ac5550c6eac496ac70fbc1d.tar.gz sqlite-7a623e1d25f471394ac5550c6eac496ac70fbc1d.zip |
Fix a problem preventing building without SQLITE_ENABLE_SETLK_TIMEOUT defined.
FossilOrigin-Name: 98eb54c6d83992886f17a00b6fc8998df230e3b5f45bafc6fae0d15a9ee5a4c6
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index fb172e721..d51071108 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -4325,7 +4325,11 @@ static int unixShmSystemLock( f.l_len = n; res = osSetPosixAdvisoryLock(pShmNode->hShm, &f, pFile); if( res==-1 ){ +#ifdef SQLITE_ENABLE_SETLK_TIMEOUT rc = (pFile->iBusyTimeout ? SQLITE_BUSY_TIMEOUT : SQLITE_BUSY); +#else + rc = SQLITE_BUSY; +#endif } } |