diff options
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 3b33edc93..b0602ac2a 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3180,8 +3180,8 @@ struct unixShm { /* ** Constants used for locking */ -#define UNIX_SHM_BASE 81 /* Byte offset of the first lock byte */ -#define UNIX_SHM_DMS 80 /* The deadman switch lock */ +#define UNIX_SHM_BASE ((18+SQLITE_SHM_NLOCK)*4) /* first lock byte */ +#define UNIX_SHM_DMS (UNIX_SHM_BASE+SQLITE_SHM_NLOCK) /* deadman switch */ #ifdef SQLITE_DEBUG /* |