diff options
author | Matthias Andree <mandree@FreeBSD.org> | 2012-06-14 23:34:42 +0000 |
---|---|---|
committer | Matthias Andree <mandree@FreeBSD.org> | 2012-06-14 23:34:42 +0000 |
commit | 42201a3a02cf940d7e0514f864eb2436c9de65c5 (patch) | |
tree | ae7443ba424b04a69b521b1c0c346476c4a154bc /databases/db5/files/patch-src_dbinc_atomic.h | |
parent | Add the Sandia Netlib mirror; remove the linux-mirror.org Netlib mirror, due to (diff) |
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
Notes
Notes:
svn path=/head/; revision=299294
Diffstat (limited to 'databases/db5/files/patch-src_dbinc_atomic.h')
-rw-r--r-- | databases/db5/files/patch-src_dbinc_atomic.h | 20 |
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; |