diff options
Diffstat (limited to 'security/sks/patches/patch-aa')
-rw-r--r-- | security/sks/patches/patch-aa | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/security/sks/patches/patch-aa b/security/sks/patches/patch-aa new file mode 100644 index 00000000000..8180c8d716f --- /dev/null +++ b/security/sks/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2012/06/16 18:55:30 pettai Exp $ + +--- bdb/bdb_stubs.c.orig 2009-03-26 01:18:03.000000000 +0000 ++++ bdb/bdb_stubs.c +@@ -12,7 +12,7 @@ + #include <sys/stat.h> + #include <sys/types.h> + #include <limits.h> +-#include <db.h> ++#include <db46/db.h> + /* O_CREAT and others are not defined in db.h */ + #include <fcntl.h> + +@@ -1198,7 +1198,7 @@ value caml_txn_begin(value dbenv, value + + err = UW_dbenv(dbenv)->txn_begin(UW_dbenv(dbenv), parent, &newtxn, flags); + if (err != 0) { +- if (err == ENOMEM) { ++ if (err == DB_BUFFER_SMALL) { + failwith("Maximum # of concurrent transactions reached"); + } else { + UW_dbenv(dbenv)->err(UW_dbenv(dbenv), err,"caml_txn_begin"); |