aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/sqlite/connection-factory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/sqlite/connection-factory.cxx b/odb/sqlite/connection-factory.cxx
index 63d7507..62e43f2 100644
--- a/odb/sqlite/connection-factory.cxx
+++ b/odb/sqlite/connection-factory.cxx
@@ -119,7 +119,7 @@ namespace odb
// Unless explicitly disabled, enable shared cache.
//
-#ifdef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
+#if SQLITE_VERSION_NUMBER >= 3006018 && defined(LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY)
if ((db_->flags () & SQLITE_OPEN_PRIVATECACHE) == 0)
extra_flags_ |= SQLITE_OPEN_SHAREDCACHE;
#endif
@@ -194,7 +194,7 @@ namespace odb
// Unless explicitly disabled, enable shared cache.
//
-#ifdef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
+#if SQLITE_VERSION_NUMBER >= 3006018 && defined(LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY)
if ((db_->flags () & SQLITE_OPEN_PRIVATECACHE) == 0)
extra_flags_ |= SQLITE_OPEN_SHAREDCACHE;
#endif