aboutsummaryrefslogtreecommitdiff
path: root/libs/redis/patches
diff options
context:
space:
mode:
authorJan Pavlinec <jan.pavlinec@nic.cz>2019-05-20 10:42:40 +0200
committerYousong Zhou <yszhou4tech@gmail.com>2019-08-09 21:46:17 +0800
commiteeab57d16ab473a0695f4a7906525435aca834e7 (patch)
tree4d571609bc5bc8b0505749b9e4a79e2c0e8c4918 /libs/redis/patches
parent86f87bc5e71150662ac540a788c246c17a66e067 (diff)
redis: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
Diffstat (limited to 'libs/redis/patches')
-rw-r--r--libs/redis/patches/020-fix-atomicvar.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/redis/patches/020-fix-atomicvar.patch b/libs/redis/patches/020-fix-atomicvar.patch
new file mode 100644
index 000000000..ad6519e48
--- /dev/null
+++ b/libs/redis/patches/020-fix-atomicvar.patch
@@ -0,0 +1,22 @@
+Index: redis-5.0.0/src/atomicvar.h
+===================================================================
+--- redis-5.0.0.orig/src/atomicvar.h
++++ redis-5.0.0/src/atomicvar.h
+@@ -68,7 +68,7 @@
+ * is reported. */
+ // #define __ATOMIC_VAR_FORCE_SYNC_MACROS
+
+-#if !defined(__ATOMIC_VAR_FORCE_SYNC_MACROS) && defined(__ATOMIC_RELAXED) && !defined(__sun) && (!defined(__clang__) || !defined(__APPLE__) || __apple_build_version__ > 4210057)
++#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)
+ /* Implementation using __atomic macros. */
+
+ #define atomicIncr(var,count) __atomic_add_fetch(&var,(count),__ATOMIC_RELAXED)
+@@ -82,7 +82,7 @@
+ #define atomicSet(var,value) __atomic_store_n(&var,value,__ATOMIC_RELAXED)
+ #define REDIS_ATOMIC_API "atomic-builtin"
+
+-#elif defined(HAVE_ATOMIC)
++#elif defined(CONFIG_EDAC_ATOMIC_SCRUB) && defined(HAVE_ATOMIC)
+ /* Implementation using __sync macros. */
+
+ #define atomicIncr(var,count) __sync_add_and_fetch(&var,(count)) \ No newline at end of file