diff options
author | Geert Hendrickx | 2018-08-20 10:06:37 +0200 |
---|---|---|
committer | Geert Hendrickx | 2018-08-20 10:06:37 +0200 |
commit | 804cfdb42339cc68cbac9d1df8085dd74c1ab9b3 (patch) | |
tree | 1678b970fc452ab3ba82716d211850b09ecd2b52 /spamprobe-db5.patch | |
download | aur-804cfdb42339cc68cbac9d1df8085dd74c1ab9b3.tar.gz |
Spamprobe, a bayesian spam filter
Diffstat (limited to 'spamprobe-db5.patch')
-rw-r--r-- | spamprobe-db5.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spamprobe-db5.patch b/spamprobe-db5.patch new file mode 100644 index 00000000000..9dc337432a4 --- /dev/null +++ b/spamprobe-db5.patch @@ -0,0 +1,11 @@ +--- src/database/FrequencyDBImpl_bdb.cc ++++ src/database/FrequencyDBImpl_bdb.cc +@@ -155,7 +155,7 @@ bool FrequencyDBImpl_bdb::openDatabase(c + // hideous ifdefs into my code. + string filename(m_env ? db_file.getName() : db_file.getPath()); + int flags = read_only ? DB_RDONLY : DB_CREATE; +-#if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1 ++#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1) + ret = m_file->open(m_file, NULL, filename.c_str(), NULL, DB_BTREE, flags, create_mode); + #else + ret = m_file->open(m_file, filename.c_str(), NULL, DB_BTREE, flags, create_mode); |