Skip to content

Commit

Permalink
redis: remove fuzz warning
Browse files Browse the repository at this point in the history
Fixes:
 WARNING: lib32-redis-7.0-rc1-r0 do_patch: Fuzz detected:

 Applying patch GNU_SOURCE.patch
 patching file src/zmalloc.c
 Hunk openembedded#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>
  • Loading branch information
Mingli Yu authored and kraj committed Mar 8, 2022
1 parent 912b347 commit 1e62080
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions meta-oe/recipes-extended/redis/redis/GNU_SOURCE.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER
From 18dc1457db8f66237e016b85a04dc50833c33c50 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 21 Dec 2019 12:09:51 -0800
Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER

Fixes
| zmalloc.c:87:37: error: 'PTHREAD_MUTEX_DEFAULT' undeclared here (not in a function)
Expand All @@ -7,11 +10,18 @@ Fixes

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
src/zmalloc.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/zmalloc.c b/src/zmalloc.c
index ba03685..322304f 100644
--- a/src/zmalloc.c
+++ b/src/zmalloc.c
@@ -28,6 +28,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
@@ -32,6 +32,7 @@
#include "config.h"
#include "solarisfixes.h"

+#define _GNU_SOURCE
#include <stdio.h>
Expand Down

0 comments on commit 1e62080

Please sign in to comment.