You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.7 KiB
56 lines
1.7 KiB
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
|
|
|