aboutsummaryrefslogtreecommitdiffstats
path: root/databases/db5
diff options
context:
space:
mode:
authormandree <mandree@FreeBSD.org>2012-06-15 07:34:42 +0800
committermandree <mandree@FreeBSD.org>2012-06-15 07:34:42 +0800
commitc1007333f0eb4fc2dd5ce58a889cd7f82760f0e2 (patch)
tree5d00af6bdb9dca1a00fdab1335a14eaf2beac2ed /databases/db5
parentc60d69c03d2ee193e7f140b899bb9b151c2108ab (diff)
downloadfreebsd-ports-gnome-c1007333f0eb4fc2dd5ce58a889cd7f82760f0e2.tar.gz
freebsd-ports-gnome-c1007333f0eb4fc2dd5ce58a889cd7f82760f0e2.tar.zst
freebsd-ports-gnome-c1007333f0eb4fc2dd5ce58a889cd7f82760f0e2.zip
Fix compilation with clang, patch taken from
http://lists.freebsd.org/pipermail/freebsd-current/2012-May/033615.html Reported by: Mel Flynn Patch by: Dimitry Andric
Diffstat (limited to 'databases/db5')
-rw-r--r--databases/db5/files/patch-src_dbinc_atomic.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/db5/files/patch-src_dbinc_atomic.h b/databases/db5/files/patch-src_dbinc_atomic.h
new file mode 100644
index 000000000000..7784596acfc6
--- /dev/null
+++ b/databases/db5/files/patch-src_dbinc_atomic.h
@@ -0,0 +1,20 @@
+--- ../src/dbinc/atomic.h.orig 2012-02-29 19:48:38.000000000 +0100
++++ ../src/dbinc/atomic.h 2012-05-04 22:39:32.000000000 +0200
+@@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
+ #define atomic_inc(env, p) __atomic_inc(p)
+ #define atomic_dec(env, p) __atomic_dec(p)
+ #define atomic_compare_exchange(env, p, o, n) \
+- __atomic_compare_exchange((p), (o), (n))
++ __atomic_compare_exchange_db((p), (o), (n))
+ static inline int __atomic_inc(db_atomic_t *p)
+ {
+ int temp;
+@@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic
+ * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
+ * which configure could be changed to use.
+ */
+-static inline int __atomic_compare_exchange(
++static inline int __atomic_compare_exchange_db(
+ db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
+ {
+ atomic_value_t was;