missing header 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 string.h, compiling on Cygwin is how I noticed strings.h was missing
This commit is contained in:
divinity76 2023-12-22 12:56:55 +01:00 committed by GitHub
parent 48b7ff193e
commit a5f91a335b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,6 +192,11 @@ using socket_t = SOCKET;
#include <sys/un.h>
#include <unistd.h>
#if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
#include <strings.h>
#endif
using socket_t = int;
#ifndef INVALID_SOCKET
#define INVALID_SOCKET (-1)