From 9b8a29f8ca93b156fe2c760d3940e7ae1ad458ec Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 26 Oct 2013 21:18:44 +0800 Subject: [PATCH] trac41 WIN32 add wsockcompat.h Using Windows 7 64 bit, cloned repo on 20130926. Using Qt creator and Microsoft Visual C++ Compiler 9.0 (x86). Result (errors from compile output): D:\Projects\CDPStudioAPI\libwebsockets_orig\lib\client-handshake.c:87: error: C2065: 'EALREADY' : undeclared identifier D:\Projects\CDPStudioAPI\libwebsockets_orig\lib\client-handshake.c:87: error: C2065: 'EINPROGRESS' : undeclared identifier Possible solution is to use wsockcompat.h (compatibility header for using EALREADY, EINPROGRESS etc in older versions of Windows SDK). Compiled fine when I #included wsockcompat.h into client-handshake.c Reported-by: mart22n via Trac 41 Signed-off-by: Andy Green --- lib/private-libwebsockets.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index 24ee858c..13a67e2f 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -70,6 +70,7 @@ #endif #endif #include +#include #include #include #else