aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-09-10 19:20:03 +0000
committerdrh <drh@noemail.net>2009-09-10 19:20:03 +0000
commit08da4bb16e3a65225fdae40223984f4c3cace1d9 (patch)
treef718f54ab3c909e9214c20eab48fce04781d6d7a /src/os_unix.c
parentabc6b89085c5782bc3f99b4efa03fada369b43d0 (diff)
downloadsqlite-08da4bb16e3a65225fdae40223984f4c3cace1d9.tar.gz
sqlite-08da4bb16e3a65225fdae40223984f4c3cace1d9.zip
Make sure the threadsOverrideEachOthersLocks variable is only referenced by
linux systems on a threadsafe compile. FossilOrigin-Name: e9d064bd9318c2bc9248df948f71fd30f24525eb
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index a45aaa1d7..ef04a72e4 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -925,7 +925,9 @@ static void releaseOpenCnt(struct unixOpenCnt *pOpen){
assert( pOpen->pNext->pPrev==pOpen );
pOpen->pNext->pPrev = pOpen->pPrev;
}
+#if SQLITE_THREADSAFE && defined(__linux__)
assert( !pOpen->pUnused || threadsOverrideEachOthersLocks==0 );
+#endif
/* If pOpen->pUnused is not null, then memory and file-descriptors
** are leaked.