From 06fbcee7033227b9aa0ce5b2fec3a667feedfb3c Mon Sep 17 00:00:00 2001 From: David Brooks Date: Wed, 2 May 2012 06:02:45 +0800 Subject: [PATCH] ssize_t needs help on windows ssize_t is needed, but absent in Windows. This patch typedefs it to an int in that case as recommended by Tobias. Signed-off-by: Andy Green Signed-off-by: David Brooks Signed-off-by: Tobias Maier Reported-by: Rich Gossweiler --- lib/libwebsockets.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index c24f09d6d..4a0a7ec21 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -39,6 +39,8 @@ extern "C" { #define strcasecmp stricmp +typedef int ssize_t; + #ifdef LWS_DLL #ifdef LWS_INTERNAL #define LWS_EXTERN extern __declspec(dllexport)