aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite/makefile')
-rw-r--r--odb/sqlite/makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/sqlite/makefile b/odb/sqlite/makefile
index a1e8c17..28cb2fe 100644
--- a/odb/sqlite/makefile
+++ b/odb/sqlite/makefile
@@ -75,7 +75,11 @@ $(out_base)/details/config.h: | $(out_base)/details/.
@echo '#ifndef ODB_SQLITE_DETAILS_CONFIG_H' >>$@
@echo '#define ODB_SQLITE_DETAILS_CONFIG_H' >>$@
@echo '' >>$@
- @echo '#define LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY 1' >>$@
+ @echo '#include <sqlite3.h>' >>$@
+ @echo '' >>$@
+ @echo '#if SQLITE_VERSION_NUMBER >= 3006012' >>$@
+ @echo ' #define LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY 1' >>$@
+ @echo '#endif' >>$@
@echo '' >>$@
@echo '#endif /* ODB_SQLITE_DETAILS_CONFIG_H */' >>$@