shithub: trueawk

Download patch

ref: 38e525fb7b8562a96422ffe9d7c65cb3569b3e6b
parent: 6535bd6c3592f24a05d752939b89f6d6eeb458c3
author: Michael Forney <mforney@mforney.org>
date: Mon Dec 14 23:46:30 EST 2020

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

--- a/lib.c
+++ b/lib.c
@@ -25,6 +25,7 @@
 #define DEBUG
 #include <stdio.h>
 #include <string.h>
+#include <strings.h>
 #include <ctype.h>
 #include <errno.h>
 #include <stdlib.h>
--