mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
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 <andy.green@linaro.org>
This commit is contained in:
parent
81877e6a4c
commit
9b8a29f8ca
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@
|
|||
#endif
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#include <wsockcompat.h>
|
||||
#include <ws2ipdef.h>
|
||||
#include <windows.h>
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue