diff options
author | Andreas Pakulat <andreas@froglogic.com> | 2013-10-28 15:15:44 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2013-11-04 09:53:59 +0800 |
commit | 39ceebcfbffc6a44acd5fdfdd323aa88249c7289 (patch) | |
tree | f092d51fb9806adf4820093c7c28bf59c6d4deb6 /lib | |
parent | b1aa1d3389416f44b1aab9b9255e4737fe91d5ec (diff) | |
download | libwebsockets-39ceebcfbffc6a44acd5fdfdd323aa88249c7289.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private-libwebsockets.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 <winsock2.h> -#include <wsockcompat.h> #include <ws2ipdef.h> #include <windows.h> #else |