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:
z3APA3A committed 2014-07-03 03:40:16 +04:00
1 parent f8cefb989c
commit 085b47d64e
4 files changed
+14 -29

No files matched your search

-2
View File
@@ -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)