logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

db-5.1.29-rename-atomic-compare-exchange.patch (852B)


  1. diff --git a/src/dbinc/atomic.h b/src/dbinc/atomic.h
  2. index 0034dcc..fa7ba93 100644
  3. --- a/src/dbinc/atomic.h
  4. +++ b/src/dbinc/atomic.h
  5. @@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
  6. #define atomic_inc(env, p) __atomic_inc(p)
  7. #define atomic_dec(env, p) __atomic_dec(p)
  8. #define atomic_compare_exchange(env, p, o, n) \
  9. - __atomic_compare_exchange((p), (o), (n))
  10. + __db_atomic_compare_exchange((p), (o), (n))
  11. static inline int __atomic_inc(db_atomic_t *p)
  12. {
  13. int temp;
  14. @@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic_t *p)
  15. * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
  16. * which configure could be changed to use.
  17. */
  18. -static inline int __atomic_compare_exchange(
  19. +static inline int __db_atomic_compare_exchange(
  20. db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
  21. {
  22. atomic_value_t was;