summaryrefslogtreecommitdiff
path: root/databases/db5
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2014-07-02 20:59:24 +0000
committerMatthias Andree <mandree@FreeBSD.org>2014-07-02 20:59:24 +0000
commiteeaaf77bc5428dcfa4010d3039542e265f4e7db0 (patch)
tree00261bdf5aab940a2e46d131571b05082b25dad9 /databases/db5
parent- Add USES=libtool to textproc/ots and bump dependent ports (diff)
Fix mutex code on powerpc64.
PR: 191453 Submitted by: jhibbits@
Diffstat (limited to 'databases/db5')
-rw-r--r--databases/db5/Makefile1
-rw-r--r--databases/db5/files/patch-dbinc_mutex_int.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/databases/db5/Makefile b/databases/db5/Makefile
index d951bf7cd0e6..a7e71144f1db 100644
--- a/databases/db5/Makefile
+++ b/databases/db5/Makefile
@@ -3,6 +3,7 @@
PORTNAME= db5
PORTVERSION= 5.3.28
+PORTREVISION= 1
CATEGORIES= databases java
MASTER_SITES= http://download.oracle.com/berkeley-db/
PKGNAMEPREFIX?=
diff --git a/databases/db5/files/patch-dbinc_mutex_int.h b/databases/db5/files/patch-dbinc_mutex_int.h
new file mode 100644
index 000000000000..8e1ea186217f
--- /dev/null
+++ b/databases/db5/files/patch-dbinc_mutex_int.h
@@ -0,0 +1,11 @@
+--- ../src/dbinc/mutex_int.h.orig 2010-04-12 13:25:22.000000000 -0700
++++ ../src/dbinc/mutex_int.h 2014-06-28 01:16:48.321255725 -0700
+@@ -596,7 +596,7 @@
+ : "=&r" (__r), "+r" (tsl)
+ :
+ : "cr0", "memory");
+- return (int)tsl;
++ return (tsl != 0);
+ }
+
+ static inline int