archrelease: copy trunk to staging-x86_64
[arch-packages.git] / db5.3 / trunk / db-5.3.28-atomic_compare_exchange.patch
blob4eab02cbd39f7a4812ed0e9514e6be4a28c38e07
1 --- db-5.3.28/src/dbinc/atomic.h.old 2018-05-23 09:20:04.216914922 +0200
2 +++ db-5.3.28/src/dbinc/atomic.h 2018-05-23 09:20:49.510057897 +0200
3 @@ -144,7 +144,7 @@
4 #define atomic_inc(env, p) __atomic_inc(p)
5 #define atomic_dec(env, p) __atomic_dec(p)
6 #define atomic_compare_exchange(env, p, o, n) \
7 - __atomic_compare_exchange((p), (o), (n))
8 + __db_atomic_compare_exchange((p), (o), (n))
9 static inline int __atomic_inc(db_atomic_t *p)
11 int temp;
12 @@ -176,7 +176,7 @@
13 * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
14 * which configure could be changed to use.
16 -static inline int __atomic_compare_exchange(
17 +static inline int __db_atomic_compare_exchange(
18 db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
20 atomic_value_t was;