]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove redundant code and to stop compiler whinging
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 8 Apr 2019 15:56:22 +0000 (16:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 8 Apr 2019 15:59:00 +0000 (16:59 +0100)
Issue: #2251
Submitted by: @beiDei8z

src/libutil/sqlite_utils.c

index b1e33cb64cdfbb1872cf6cd64dbc371c44299866..9c29695426b12f3f7b0b9635a44ee9c8b20964be 100644 (file)
@@ -297,8 +297,10 @@ rspamd_sqlite3_open_or_create (rspamd_mempool_t *pool, const gchar *path, const
 
                        foreign_keys[] =                "PRAGMA foreign_keys=\"ON\";",
 
+#if defined(__LP64__) || defined(_LP64)
                        enable_mmap[] =                 "PRAGMA mmap_size="
                                                                        G_STRINGIFY(RSPAMD_SQLITE_MMAP_LIMIT) ";",
+#endif
 
                        other_pragmas[] =               "PRAGMA read_uncommitted=\"ON\";"
                                                                        "PRAGMA cache_size="