ssize_t needs help on windows
authorDavid Brooks <dave@bcs.co.nz>
Tue, 1 May 2012 22:02:45 +0000 (06:02 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 1 May 2012 22:02:45 +0000 (06:02 +0800)
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 <andy@warmcat.com>
Signed-off-by: David Brooks <dave@bcs.co.nz>
Signed-off-by: Tobias Maier <tobias.maier@netplace.com>
Reported-by: Rich Gossweiler <rich.gossweiler@gmail.com>
lib/libwebsockets.h

index c24f09d..4a0a7ec 100644 (file)
@@ -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)