Drop wsockcompat.h header its not part of msvc
authorAndreas Pakulat <andreas@froglogic.com>
Mon, 28 Oct 2013 14:15:44 +0000 (15:15 +0100)
committerAndy Green <andy.green@linaro.org>
Mon, 4 Nov 2013 01:53:59 +0000 (09:53 +0800)
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

index 13a67e2..6b897f0 100644 (file)
 #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