cygwin compatibility
Signed-off-by: Bob Roberts <bobroberts177@gmail.com>
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
index 3e9f761..579763d 100644
--- a/lib/libwebsockets.c
+++ b/lib/libwebsockets.c
@@ -452,7 +452,7 @@
struct libwebsocket *wsi, int fd, char *name, int name_len,
char *rip, int rip_len)
{
- unsigned int len;
+ socklen_t len;
struct sockaddr_in sin;
struct hostent *host;
struct hostent *host1;
@@ -554,7 +554,7 @@
(const void *)&optval, optlen) < 0)
return 1;
-#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__CYGWIN__)
/*
* didn't find a way to set these per-socket, need to