Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From 20984c73bea8c3df00f297176edd4f6d47c31b55 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 2 Sep 2022 17:49:20 -0700 |
| 4 | Subject: [PATCH 1/4] common/utils: Include string.h for strcasestr |
| 5 | |
| 6 | Also define _GNU_SOURCE for the same |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | common/utils.c | 2 ++ |
| 12 | 1 file changed, 2 insertions(+) |
| 13 | |
| 14 | --- a/common/utils.c |
| 15 | +++ b/common/utils.c |
| 16 | @@ -1,9 +1,11 @@ |
| 17 | +#define _GNU_SOURCE |
| 18 | #include "utils.h" |
| 19 | #include "string.h" |
| 20 | #include <dlfcn.h> |
| 21 | #include <sys/stat.h> |
| 22 | #include <errno.h> |
| 23 | #include <stdlib.h> |
| 24 | +#include <string.h> /* strcasestr */ |
| 25 | |
| 26 | extern int errno; |
| 27 | |
| 28 | --- a/protocol/hp_ipp.c |
| 29 | +++ b/protocol/hp_ipp.c |
| 30 | @@ -18,12 +18,13 @@ Boston, MA 02110-1301, USA. |
| 31 | |
| 32 | \******************************************************************************/ |
| 33 | |
| 34 | - |
| 35 | +#define _GNU_SOURCE |
| 36 | #include <cups/cups.h> |
| 37 | #include <cups/language.h> |
| 38 | #include <cups/ppd.h> |
| 39 | #include <syslog.h> |
| 40 | #include <stdarg.h> |
| 41 | +#include <string.h> /* strcasecmp */ |
| 42 | #include <sys/types.h> |
| 43 | #include <pwd.h> |
| 44 | #include <sys/stat.h> |