~ chicken-core (chicken-5) 02e2e4d66d217dd84e2228cf67c14350b304e74c


commit 02e2e4d66d217dd84e2228cf67c14350b304e74c
Author:     Peter Bex <peter@more-magic.net>
AuthorDate: Tue Jan 17 21:52:17 2017 +0100
Commit:     Evan Hanson <evhan@foldling.org>
CommitDate: Wed Jan 18 11:19:52 2017 +1300

    Add <strings.h> for strn[case]cmp.
    
    Apparently, <strings.h> is a POSIX header that's completely distinct
    from the ISO C <string.h> header.
    
    MingW is the only purist here, which doesn't include one from the
    other, thereby causing "implicit declaration of strncasecmp" warnings.
    
    See also the Single Unix Spec:
    http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/strings.h.html
    
    Signed-off-by: Evan Hanson <evhan@foldling.org>

diff --git a/runtime.c b/runtime.c
index d9ee0009..78f2f9b6 100644
--- a/runtime.c
+++ b/runtime.c
@@ -32,6 +32,7 @@
 #include <float.h>
 #include <signal.h>
 #include <sys/stat.h>
+#include <strings.h>
 
 #ifdef HAVE_SYSEXITS_H
 # include <sysexits.h>
Trap