1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Fix mutex code on powerpc64.

PR:		191453
Submitted by:	jhibbits@
This commit is contained in:
Matthias Andree 2014-07-02 20:59:24 +00:00
parent 2fd54788f8
commit eeaaf77bc5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360264
6 changed files with 36 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= db48
PORTVERSION= 4.8.30.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://download.oracle.com/berkeley-db/
PKGNAMEPREFIX?=

View File

@ -0,0 +1,11 @@
--- ../dbinc/mutex_int.h.orig 2010-04-12 13:25:22.000000000 -0700
+++ ../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

View File

@ -3,6 +3,7 @@
PORTNAME= db5
PORTVERSION= 5.3.28
PORTREVISION= 1
CATEGORIES= databases java
MASTER_SITES= http://download.oracle.com/berkeley-db/
PKGNAMEPREFIX?=

View File

@ -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

View File

@ -3,6 +3,7 @@
PORTNAME= db6
PORTVERSION= 6.0.30
PORTREVISION= 1
CATEGORIES= databases java
MASTER_SITES= http://download.oracle.com/berkeley-db/
PKGNAMEPREFIX?=

View File

@ -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