From 20984c73bea8c3df00f297176edd4f6d47c31b55 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 2 Sep 2022 17:49:20 -0700
Subject: [PATCH 1/4] common/utils: Include string.h for strcasestr

Also define _GNU_SOURCE for the same

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

Rebased for latest version. string.h is included already, left
only the _GNU_SOURCE definition.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
 common/utils.c | 2 ++
 1 file changed, 2 insertions(+)

--- a/common/utils.c
+++ b/common/utils.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include "utils.h"
 #include "string.h"
 #include <dlfcn.h>
--- a/protocol/hp_ipp.c
+++ b/protocol/hp_ipp.c
@@ -18,6 +18,7 @@ Boston, MA 02110-1301, USA.

 \******************************************************************************/

+#define _GNU_SOURCE
 #include <cups/cups.h>
 #include <cups/language.h>
 #include <cups/ppd.h>
