summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/redis
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2022-03-08 11:16:42 +0800
committerKhem Raj <raj.khem@gmail.com>2022-03-09 07:37:42 -0800
commit4e6eac4f69d4a16c09f8a42ace0bb79d5649e305 (patch)
tree0bedae0b7cb2782d8dd1ae56fa155c99ee4e8029 /meta-oe/recipes-extended/redis
parent81fcb002411afee4f2fb48f0f870805d5f5915e6 (diff)
downloadmeta-openembedded-4e6eac4f69d4a16c09f8a42ace0bb79d5649e305.tar.gz
redis: remove fuzz warning
Fixes: WARNING: lib32-redis-7.0-rc1-r0 do_patch: Fuzz detected: Applying patch GNU_SOURCE.patch patching file src/zmalloc.c Hunk #1 succeeded at 32 with fuzz 2 (offset 4 lines). Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/redis')
-rw-r--r--meta-oe/recipes-extended/redis/redis/GNU_SOURCE.patch18
1 files changed, 14 insertions, 4 deletions
diff --git a/meta-oe/recipes-extended/redis/redis/GNU_SOURCE.patch b/meta-oe/recipes-extended/redis/redis/GNU_SOURCE.patch
index 9a40d832f..12994da56 100644
--- a/meta-oe/recipes-extended/redis/redis/GNU_SOURCE.patch
+++ b/meta-oe/recipes-extended/redis/redis/GNU_SOURCE.patch
@@ -1,4 +1,7 @@
1Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER 1From 18dc1457db8f66237e016b85a04dc50833c33c50 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 21 Dec 2019 12:09:51 -0800
4Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER
2 5
3Fixes 6Fixes
4| zmalloc.c:87:37: error: 'PTHREAD_MUTEX_DEFAULT' undeclared here (not in a function) 7| zmalloc.c:87:37: error: 'PTHREAD_MUTEX_DEFAULT' undeclared here (not in a function)
@@ -7,11 +10,18 @@ Fixes
7 10
8Upstream-Status: Pending 11Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com> 12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13
14---
15 src/zmalloc.c | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/src/zmalloc.c b/src/zmalloc.c
19index ba03685..322304f 100644
10--- a/src/zmalloc.c 20--- a/src/zmalloc.c
11+++ b/src/zmalloc.c 21+++ b/src/zmalloc.c
12@@ -28,6 +28,7 @@ 22@@ -32,6 +32,7 @@
13 * POSSIBILITY OF SUCH DAMAGE. 23 #include "config.h"
14 */ 24 #include "solarisfixes.h"
15 25
16+#define _GNU_SOURCE 26+#define _GNU_SOURCE
17 #include <stdio.h> 27 #include <stdio.h>