diff options
author | David Brooks <dave@bcs.co.nz> | 2012-05-02 06:02:45 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-05-02 06:02:45 +0800 |
commit | 06fbcee7033227b9aa0ce5b2fec3a667feedfb3c (patch) | |
tree | 11f27c699021253c8d5c87e9fdef5582ac367f8a | |
parent | 2c60d9584e7c7944dc7ff96e039df8bb6847dff5 (diff) |
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 <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>
-rw-r--r-- | lib/libwebsockets.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index c24f09d..4a0a7ec 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) |