From 39ceebcfbffc6a44acd5fdfdd323aa88249c7289 Mon Sep 17 00:00:00 2001 From: Andreas Pakulat Date: Mon, 28 Oct 2013 15:15:44 +0100 Subject: [PATCH] Drop wsockcompat.h header its not part of msvc I don't see a wsockcompat.h anywhere in MSVC9 or MSVC8 and their corresponding sdk's. It does not seem like this is a standard windows header, so better drop that and add the compat-defines to the same place that already has other WSA compat defines. --- lib/private-libwebsockets.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index 13a67e2f..6b897f0b 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -60,6 +60,15 @@ #ifndef EWOULDBLOCK #define EWOULDBLOCK EAGAIN #endif +#ifndef EALREADY +#define EALREADY WSAEALREADY +#endif +#ifndef EINPROGRESS +#define EINPROGRESS WSAEINPROGRESS +#endif +#ifndef EISCONN +#define EISCONN WSAEISCONN +#endif #define compatible_close(fd) closesocket(fd); #ifdef __MINGW64__ @@ -70,7 +79,6 @@ #endif #endif #include -#include #include #include #else