From fd2e006c32a407e4f097250b1e5e7f04098bae7b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Sep 2012 09:50:53 +0200 Subject: Make sure we support older versions of SQLite (3.5.3 and up) --- odb/sqlite/makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'odb/sqlite/makefile') 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 ' >>$@ + @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 */' >>$@ -- cgit v1.1