diff options
Diffstat (limited to 'pkg/awk/patch/0001-Include-strings.h-for-strcasecmp.patch')
| -rw-r--r-- | pkg/awk/patch/0001-Include-strings.h-for-strcasecmp.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkg/awk/patch/0001-Include-strings.h-for-strcasecmp.patch b/pkg/awk/patch/0001-Include-strings.h-for-strcasecmp.patch new file mode 100644 index 00000000..8b202dae --- /dev/null +++ b/pkg/awk/patch/0001-Include-strings.h-for-strcasecmp.patch @@ -0,0 +1,29 @@ +From ed600d8ac056b1e522231ffc4a819fc8c05f8eb6 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Mon, 14 Dec 2020 02:10:41 -0800 +Subject: [PATCH] Include <strings.h> for strcasecmp + +Though some implementations include this header indirectly through +string.h by default, the POSIX header that declares strcasecmp is +strings.h[0]. + +[0] https://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html +--- + lib.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib.c b/lib.c +index 5404818..c200114 100644 +--- a/lib.c ++++ b/lib.c +@@ -25,6 +25,7 @@ THIS SOFTWARE. + #define DEBUG + #include <stdio.h> + #include <string.h> ++#include <strings.h> + #include <ctype.h> + #include <errno.h> + #include <stdlib.h> +-- +2.29.2 + |
