From 5266c3ff543c611cebfc9bd5f1fde0e51a3572f3 Mon Sep 17 00:00:00 2001 From: Ignas Maslinskas Date: Sun, 11 Feb 2018 13:58:58 +0200 Subject: [PATCH] add a check for ssize_t definition --- evpp/sys_sockets.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/evpp/sys_sockets.h b/evpp/sys_sockets.h index 3a7bdd160..f32069552 100644 --- a/evpp/sys_sockets.h +++ b/evpp/sys_sockets.h @@ -15,7 +15,12 @@ #include #include +#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED) typedef int ssize_t; +# define _SSIZE_T_ +# define _SSIZE_T_DEFINED +#endif + #define iovec _WSABUF #define iov_base buf #define iov_len len