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