From 94faeaaee9a7ca5057b41887ff814f53b69b62b5 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Fri, 22 Dec 2023 23:25:01 +0100 Subject: [PATCH] add missing #include for strcasecmp Posix specifications say you need strings.h to use strcasecmp - it happens to work on most Linux systems without it, but that's basically just a compiler include bug (i think?) - Cygwin gcc actually requires strings.h, compiling on Cygwin is how I noticed strings.h was missing --- httplib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/httplib.h b/httplib.h index d29ff85291..09614fa22a 100644 --- a/httplib.h +++ b/httplib.h @@ -198,6 +198,9 @@ using socket_t = SOCKET; #include #include #include +#if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L +#include +#endif using socket_t = int; #ifndef INVALID_SOCKET