summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-05-02 11:07:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-05-02 11:07:01 +0200
commit7ce5b6d18b6753717df9cbbbf1e51a7c80124313 (patch)
tree683868a0f89c163fbc0c82f73c9de48e7cd7a592
parent5e8f2c7e0357b770adee8a46801fa7dd2dedb94c (diff)
Don't enable SQLite unlock notification functionality if we have no threads
-rw-r--r--libodb-sqlite/odb/sqlite/details/config.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libodb-sqlite/odb/sqlite/details/config.hxx b/libodb-sqlite/odb/sqlite/details/config.hxx
index 98f4bca..8db5a1e 100644
--- a/libodb-sqlite/odb/sqlite/details/config.hxx
+++ b/libodb-sqlite/odb/sqlite/details/config.hxx
@@ -12,7 +12,7 @@
#include <sqlite3.h>
-#if SQLITE_VERSION_NUMBER >= 3006012
+#if SQLITE_VERSION_NUMBER >= 3006012 && !defined(ODB_THREADS_NONE)
# define LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY 1
#endif