Define _set_errno if not present on the compile-platform (e.g. Linux)

This commit is contained in:
Matyas Markovics 2021-02-05 12:56:15 +01:00
parent 09a7249cfc
commit 870e34d77c

View File

@ -116,6 +116,10 @@ void daemonize(void);
#ifdef _WIN32 #ifdef _WIN32
#define strcasecmp stricmp #define strcasecmp stricmp
#define strncasecmp strnicmp #define strncasecmp strnicmp
#else
#ifndef _set_errno
#define _set_errno(x) (errno = x)
#endif
#endif #endif
#ifndef SOCKET_ERROR #ifndef SOCKET_ERROR