mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fix compatibility issues
! avoid errno usage due to compatibility issues (and never use errno as a lvalue). socks changed to use internal error codes instead. ! NOIPV6 compilation issues solved ! -lite version is switched to NOIPV6
This commit is contained in:
1 parent
f8cefb989c
commit
085b47d64e
4 files changed
+14
-29
No files matched your search
@@ -28,9 +28,7 @@ extern "C" {
|
||||
#define INVALID_SOCKET (-1)
|
||||
#else
|
||||
#include <winsock2.h>
|
||||
#ifndef NOIPV6
|
||||
#include <Ws2tcpip.h>
|
||||
#endif
|
||||
#define pthread_mutex_t CRITICAL_SECTION
|
||||
#define pthread_mutex_init(x, y) InitializeCriticalSection(x)
|
||||
#define pthread_mutex_lock(x) EnterCriticalSection(x)
|
||||
|
||||
Reference in new issue
Block a user