From: Vsevolod Stakhov Date: Sat, 27 Jun 2015 15:41:36 +0000 (+0100) Subject: Try to fix build with old sqlite. X-Git-Tag: 1.0.0~488 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=59bcaad8221610804d99ae862dab0cfbdabf2dc1;p=rspamd.git Try to fix build with old sqlite. --- diff --git a/src/libstat/backends/sqlite3_backend.c b/src/libstat/backends/sqlite3_backend.c index 206317a98..13d82b7a3 100644 --- a/src/libstat/backends/sqlite3_backend.c +++ b/src/libstat/backends/sqlite3_backend.c @@ -333,7 +333,7 @@ rspamd_sqlite3_opendb (const gchar *path, const ucl_object_t *opts, if ((rc = sqlite3_open_v2 (path, &sqlite, flags, NULL)) != SQLITE_OK) { -#if SQLITE_VERSION_NUMBER >= 3007015 +#if SQLITE_VERSION_NUMBER >= 3008000 g_set_error (err, rspamd_sqlite3_quark (), rc, "cannot open sqlite db %s: %s", path, sqlite3_errstr (rc));