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:
parent
48b7ff193e
commit
a5f91a335b
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue