summaryrefslogtreecommitdiff
path: root/databases/ruby-bdb/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2007-08-14 13:40:33 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2007-08-14 13:40:33 +0000
commitb90590351d639c7dff1cf4bab6743cad12ea074b (patch)
treee9dec8689d50e3bb5750fc24ebd32545bbbce17b /databases/ruby-bdb/files
parentMove speedcrunch from science to math. (diff)
Add a patch to fix build with Berkeley db 4.2-4.3.
Tested with the bundled test suite. Reported by: many..
Diffstat (limited to 'databases/ruby-bdb/files')
-rw-r--r--databases/ruby-bdb/files/patch-src::bdb.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/ruby-bdb/files/patch-src::bdb.c b/databases/ruby-bdb/files/patch-src::bdb.c
new file mode 100644
index 000000000000..f24545206aed
--- /dev/null
+++ b/databases/ruby-bdb/files/patch-src::bdb.c
@@ -0,0 +1,14 @@
+--- src/bdb.c.orig Sun Jul 29 23:33:18 2007
++++ src/bdb.c Tue Aug 14 22:33:01 2007
+@@ -512,7 +512,11 @@
+ #ifdef DB_REP_ISPERM
+ rb_define_const(bdb_mDb, "REP_ISPERM", INT2FIX(DB_REP_ISPERM));
+ rb_define_const(bdb_mDb, "REP_NOTPERM", INT2FIX(DB_REP_NOTPERM));
++#endif
++#ifdef DB_REP_IGNORE
+ rb_define_const(bdb_mDb, "REP_IGNORE", INT2FIX(DB_REP_IGNORE));
++#endif
++#ifdef DB_REP_JOIN_FAILURE
+ rb_define_const(bdb_mDb, "REP_JOIN_FAILURE", INT2FIX(DB_REP_JOIN_FAILURE));
+ #endif
+ rb_define_const(bdb_mDb, "EID_BROADCAST", INT2FIX(DB_EID_BROADCAST));