OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael Schloh
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 14-Oct-2002 21:09:48
Branch: HEAD Handle: 2002101420094800
Added files:
openpkg-src/exim exim-db4.patch
Log:
Repair exim build process to conform to new Berkeley db 4.1.24 transactional API.
Summary:
Revision Changes Path
1.1 +27 -0 openpkg-src/exim/exim-db4.patch
____________________________________________________________________________
Index: openpkg-src/exim/exim-db4.patch
============================================================
$ cvs update -p -r1.1 exim-db4.patch
diff -Naur exim-4.10.orig/src/dbstuff.h exim-4.10/src/dbstuff.h
--- exim-4.10.orig/src/dbstuff.h Mon Jul 22 10:59:48 2002
+++ exim-4.10/src/dbstuff.h Mon Oct 14 21:03:33 2002
@@ -126,6 +126,15 @@
/* Access functions */
+#if (DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1)
+/* EXIM_DBOPEN - sets *dbpp to point to an EXIM_DB, NULL if failed */
+#define EXIM_DBOPEN(name, flags, mode, dbpp) \
+ if (db_create(dbpp, NULL, 0) != 0 || \
+ (*dbpp)->open(*dbpp, 0, CS name, NULL, \
+ ((flags) == O_RDONLY)? DB_UNKNOWN : DB_HASH, \
+ ((flags) == O_RDONLY)? DB_RDONLY : DB_CREATE, \
+ mode) != 0) *(dbpp) = NULL
+#else
/* EXIM_DBOPEN - sets *dbpp to point to an EXIM_DB, NULL if failed */
#define EXIM_DBOPEN(name, flags, mode, dbpp) \
if (db_create(dbpp, NULL, 0) != 0 || \
@@ -133,6 +142,7 @@
((flags) == O_RDONLY)? DB_UNKNOWN : DB_HASH, \
((flags) == O_RDONLY)? DB_RDONLY : DB_CREATE, \
mode) != 0) *(dbpp) = NULL
+#endif
/* EXIM_DBGET - returns TRUE if successful, FALSE otherwise */
#define EXIM_DBGET(db, key, data) \
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]