summaryrefslogtreecommitdiff
path: root/legacy/evil/src/lib/evil_inet.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/evil/src/lib/evil_inet.c')
-rw-r--r--legacy/evil/src/lib/evil_inet.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/legacy/evil/src/lib/evil_inet.c b/legacy/evil/src/lib/evil_inet.c
index 1b679ea808..99ce14edc2 100644
--- a/legacy/evil/src/lib/evil_inet.c
+++ b/legacy/evil/src/lib/evil_inet.c
@@ -45,8 +45,15 @@
45#define APICHAR char 45#define APICHAR char
46#include "evil_print.h" 46#include "evil_print.h"
47 47
48#ifndef EMSGSIZE
49# define EMSGSIZE WSAEMSGSIZE
50#endif
51
52#ifndef EAFNOSUPPORT
53# define EAFNOSUPPORT WSAEAFNOSUPPORT
54#endif
48 55
49# define SPRINTF(x) ((size_t)sprintf x) 56#define SPRINTF(x) ((size_t)sprintf x)
50 57
51#define ERRNO ((int)GetLastError()) 58#define ERRNO ((int)GetLastError())
52#define SET_ERRNO(x) (SetLastError((DWORD)(x))) 59#define SET_ERRNO(x) (SetLastError((DWORD)(x)))