Blame SOURCES/db-5.3.28-atomic_compare_exchange.patch
|
|
b1d0b3 |
--- db-5.3.28/src/dbinc/atomic.h.old 2018-05-23 09:20:04.216914922 +0200
|
|
|
b1d0b3 |
+++ db-5.3.28/src/dbinc/atomic.h 2018-05-23 09:20:49.510057897 +0200
|
|
|
b1d0b3 |
@@ -144,7 +144,7 @@
|
|
|
b1d0b3 |
#define atomic_inc(env, p) __atomic_inc(p)
|
|
|
b1d0b3 |
#define atomic_dec(env, p) __atomic_dec(p)
|
|
|
b1d0b3 |
#define atomic_compare_exchange(env, p, o, n) \
|
|
|
b1d0b3 |
- __atomic_compare_exchange((p), (o), (n))
|
|
|
b1d0b3 |
+ __db_atomic_compare_exchange((p), (o), (n))
|
|
|
b1d0b3 |
static inline int __atomic_inc(db_atomic_t *p)
|
|
|
b1d0b3 |
{
|
|
|
b1d0b3 |
int temp;
|
|
|
b1d0b3 |
@@ -176,7 +176,7 @@
|
|
|
b1d0b3 |
* http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
|
|
|
b1d0b3 |
* which configure could be changed to use.
|
|
|
b1d0b3 |
*/
|
|
|
b1d0b3 |
-static inline int __atomic_compare_exchange(
|
|
|
b1d0b3 |
+static inline int __db_atomic_compare_exchange(
|
|
|
b1d0b3 |
db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
|
|
|
b1d0b3 |
{
|
|
|
b1d0b3 |
atomic_value_t was;
|