diff options
Diffstat (limited to 'mail/spamprobe/patches/patch-aa')
-rw-r--r-- | mail/spamprobe/patches/patch-aa | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/spamprobe/patches/patch-aa b/mail/spamprobe/patches/patch-aa new file mode 100644 index 00000000000..d156078af2a --- /dev/null +++ b/mail/spamprobe/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.5 2010/06/02 13:17:22 adam Exp $ + +--- src/database/FrequencyDBImpl_bdb.cc.orig 2010-06-02 08:31:38.000000000 +0000 ++++ 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); |