mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
Define _set_errno if not present on the compile-platform (e.g. Linux)
This commit is contained in:
parent
09a7249cfc
commit
870e34d77c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user