diff options
| author | Michael Forney <mforney@mforney.org> | 2020-12-14 00:40:21 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-12-14 02:40:26 -0800 |
| commit | 9aea29e7044f5d86a3f975646c3b0231125d6435 (patch) | |
| tree | 06832a9627de45ec8f2eb98ec9502a1e8ced6cf9 /pkg/awk/patch | |
| parent | c3ce7c6539a09d7b08ac719b70dfea8d83b4d516 (diff) | |
awk: Update to 20201208
Diffstat (limited to 'pkg/awk/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 + |
