aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-12-15 04:46:30 -0800
committerGitHub <noreply@github.com>2020-12-15 14:46:30 +0200
commit38e525fb7b8562a96422ffe9d7c65cb3569b3e6b (patch)
tree077434197a4ee391945e8fcf5e349f0e50d56e4f
parent6535bd6c3592f24a05d752939b89f6d6eeb458c3 (diff)
downloadone-true-awk-38e525fb7b8562a96422ffe9d7c65cb3569b3e6b.tar.gz
Include <strings.h> for strcasecmp (#99)
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
-rw-r--r--lib.c1
1 files changed, 1 insertions, 0 deletions
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>