diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2022-03-08 11:16:42 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-03-09 07:37:42 -0800 |
commit | 4e6eac4f69d4a16c09f8a42ace0bb79d5649e305 (patch) | |
tree | 0bedae0b7cb2782d8dd1ae56fa155c99ee4e8029 /meta-oe/recipes-extended/redis | |
parent | 81fcb002411afee4f2fb48f0f870805d5f5915e6 (diff) | |
download | meta-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.patch | 18 |
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 @@ | |||
1 | Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER | 1 | From 18dc1457db8f66237e016b85a04dc50833c33c50 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 21 Dec 2019 12:09:51 -0800 | ||
4 | Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER | ||
2 | 5 | ||
3 | Fixes | 6 | Fixes |
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 | ||
8 | Upstream-Status: Pending | 11 | Upstream-Status: Pending |
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | |||
14 | --- | ||
15 | src/zmalloc.c | 1 + | ||
16 | 1 file changed, 1 insertion(+) | ||
17 | |||
18 | diff --git a/src/zmalloc.c b/src/zmalloc.c | ||
19 | index 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> |