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 22:55:23
Branch: HEAD Handle: 2002101421552300
Added files:
openpkg-src/sendmail sendmail-db4.patch
Log:
Repair sendmail build to conform to new Berkeley db 4.1.24 API.
Summary:
Revision Changes Path
1.1 +56 -0 openpkg-src/sendmail/sendmail-db4.patch
____________________________________________________________________________
Index: openpkg-src/sendmail/sendmail-db4.patch
============================================================
$ cvs update -p -r1.1 sendmail-db4.patch
diff -Naur sendmail-8.12.6.orig/libsmdb/smdb2.c sendmail-8.12.6/libsmdb/smdb2.c
--- sendmail-8.12.6.orig/libsmdb/smdb2.c Sat May 25 01:09:11 2002
+++ sendmail-8.12.6/libsmdb/smdb2.c Mon Oct 14 22:37:39 2002
@@ -523,7 +523,11 @@
}
}
+#if (DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1)
+ result = (*db)->open(*db, NULL, db_name, NULL, db_type, db_flags, DBMMODE);
+#else
result = (*db)->open(*db, db_name, NULL, db_type, db_flags, DBMMODE);
+#endif
if (result != 0)
{
(void) (*db)->close(*db, 0);
diff -Naur sendmail-8.12.6.orig/sendmail/map.c sendmail-8.12.6/sendmail/map.c
--- sendmail-8.12.6.orig/sendmail/map.c Sat Aug 10 00:23:13 2002
+++ sendmail-8.12.6/sendmail/map.c Mon Oct 14 22:37:35 2002
@@ -2115,7 +2115,11 @@
# endif /* DB_HASH_NELEM */
if (ret == 0 && db != NULL)
{
+#if (DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1)
+ ret = db->open(db, NULL, buf, NULL, dbtype, flags, DBMMODE);
+#else
ret = db->open(db, buf, NULL, dbtype, flags, DBMMODE);
+#endif
if (ret != 0)
{
#ifdef DB_OLD_VERSION
diff -Naur sendmail-8.12.6.orig/sendmail/udb.c sendmail-8.12.6/sendmail/udb.c
--- sendmail-8.12.6.orig/sendmail/udb.c Tue Sep 11 06:05:17 2001
+++ sendmail-8.12.6/sendmail/udb.c Mon Oct 14 22:44:32 2002
@@ -1012,12 +1012,22 @@
}
else
{
+#if (DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1)
+ ret = up->udb_dbp->open(up->udb_dbp,
+ NULL,
+ up->udb_dbname,
+ NULL,
+ DB_BTREE,
+ flags,
+ 0644);
+#else
ret = up->udb_dbp->open(up->udb_dbp,
up->udb_dbname,
NULL,
DB_BTREE,
flags,
0644);
+#endif
if (ret != 0)
{
#ifdef DB_OLD_VERSION
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]