updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / spamprobe / spamprobe-db5.patch
blob9dc337432a4de5ec48ba5d976d32def60a438924
1 --- src/database/FrequencyDBImpl_bdb.cc
2 +++ src/database/FrequencyDBImpl_bdb.cc
3 @@ -155,7 +155,7 @@ bool FrequencyDBImpl_bdb::openDatabase(c
4 // hideous ifdefs into my code.
5 string filename(m_env ? db_file.getName() : db_file.getPath());
6 int flags = read_only ? DB_RDONLY : DB_CREATE;
7 -#if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1
8 +#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1)
9 ret = m_file->open(m_file, NULL, filename.c_str(), NULL, DB_BTREE, flags, create_mode);
10 #else
11 ret = m_file->open(m_file, filename.c_str(), NULL, DB_BTREE, flags, create_mode);