diff options
| author | Stefan Weil <sw@weilnetz.de> | 2018-06-18 14:06:25 +0200 |
|---|---|---|
| committer | Stefan Weil <sw@weilnetz.de> | 2018-06-18 14:48:08 +0200 |
| commit | 4aaf52ec8d8ec7b94c73f77f9c0029a3d3cabbf9 (patch) | |
| tree | 31c0ace32e476b8b57a7825db72d05802d55c50e /src | |
| parent | fd205f457b157e925e2a6eb03aba397b45b0ed4e (diff) | |
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 <sw@weilnetz.de>
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/openjpip/sock_manager.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <windows.h> +#ifdef _MSC_VER typedef SSIZE_T ssize_t; +#endif #else #include <sys/types.h> #include <sys/socket.h> |
