From 4aaf52ec8d8ec7b94c73f77f9c0029a3d3cabbf9 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 18 Jun 2018 14:06:25 +0200 Subject: [PATCH] Use local type declaration for POSIX standard type only for MS compiler ssize_t is a POSIX type which is declared in POSIX include files. Mingw-w64 provides it also for Windows. Use the local declaration only with MS compilers. Signed-off-by: Stefan Weil --- src/lib/openjpip/sock_manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/openjpip/sock_manager.c b/src/lib/openjpip/sock_manager.c index ec2455e8..a776cedb 100644 --- a/src/lib/openjpip/sock_manager.c +++ b/src/lib/openjpip/sock_manager.c @@ -30,7 +30,9 @@ #ifdef _WIN32 #include +#ifdef _MSC_VER typedef SSIZE_T ssize_t; +#endif #else #include #include