You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
1.1 KiB

  1. Index: redis-5.0.0/src/atomicvar.h
  2. ===================================================================
  3. --- redis-5.0.0.orig/src/atomicvar.h
  4. +++ redis-5.0.0/src/atomicvar.h
  5. @@ -68,7 +68,7 @@
  6. * is reported. */
  7. // #define __ATOMIC_VAR_FORCE_SYNC_MACROS
  8. -#if !defined(__ATOMIC_VAR_FORCE_SYNC_MACROS) && defined(__ATOMIC_RELAXED) && !defined(__sun) && (!defined(__clang__) || !defined(__APPLE__) || __apple_build_version__ > 4210057)
  9. +#if defined(CONFIG_EDAC_ATOMIC_SCRUB) && !defined(__ATOMIC_VAR_FORCE_SYNC_MACROS) && defined(__ATOMIC_RELAXED) && !defined(__sun) && (!defined(__clang__) || !defined(__APPLE__) || __apple_build_version__ > 4210057)
  10. /* Implementation using __atomic macros. */
  11. #define atomicIncr(var,count) __atomic_add_fetch(&var,(count),__ATOMIC_RELAXED)
  12. @@ -82,7 +82,7 @@
  13. #define atomicSet(var,value) __atomic_store_n(&var,value,__ATOMIC_RELAXED)
  14. #define REDIS_ATOMIC_API "atomic-builtin"
  15. -#elif defined(HAVE_ATOMIC)
  16. +#elif defined(CONFIG_EDAC_ATOMIC_SCRUB) && defined(HAVE_ATOMIC)
  17. /* Implementation using __sync macros. */
  18. #define atomicIncr(var,count) __sync_add_and_fetch(&var,(count))