eras        14/08/07 05:55:55

  Added:                postfix-2.11.1-db6.patch
  Log:
  Support building with db6 - bug #518994
  
  (Portage version: 2.2.11-r1/cvs/Linux x86_64, signed Manifest commit with key 
0x77F1F175586A3B1F)

Revision  Changes    Path
1.1                  mail-mta/postfix/files/postfix-2.11.1-db6.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/files/postfix-2.11.1-db6.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/files/postfix-2.11.1-db6.patch?rev=1.1&content-type=text/plain

Index: postfix-2.11.1-db6.patch
===================================================================
--- src/util/dict_db.c  2012-01-25 00:41:08.000000000 +0000
+++ src/util/dict_db.c  2014-06-25 18:56:10.000000000 +0000
@@ -693,7 +688,8 @@
        msg_fatal("set DB cache size %d: %m", dict_db_cache_size);
     if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
        msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
-#if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
+#if DB_VERSION_MAJOR == 6 || DB_VERSION_MAJOR == 5 || \
+       (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
     if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0)
        FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags,
                                   "open database %s: %m", db_path));




Reply via email to