From 4e414e65bb9cb5177dfb35c6f493ffd412fa8cb9 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 27 Apr 2013 08:33:26 +0800 Subject: [PATCH] trac 29 win32 EWOULDBLOCK Signed-off-by: Andy Green --- lib/private-libwebsockets.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index 251a7022..d1ca6d21 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -57,6 +57,9 @@ #ifdef WIN32 #define LWS_NO_DAEMONIZE +#ifndef EWOULDBLOCK +#define EWOULDBLOCK EAGAIN +#endif #define compatible_close(fd) closesocket(fd); #ifdef __MINGW64__