]> source.dussan.org Git - rspamd.git/commitdiff
Try to fix build with old sqlite.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 27 Jun 2015 15:41:36 +0000 (16:41 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 27 Jun 2015 15:42:17 +0000 (16:42 +0100)
src/libstat/backends/sqlite3_backend.c

index 206317a988892a2b4c532232fe22d7b916cf62d7..13d82b7a33ea03564bd18b88f8aa100eabf185f9 100644 (file)
@@ -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));