diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-10-16 15:44:12 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-10-17 15:37:28 +0200 |
commit | 009ca5c9ddd8f27d6397b605f1ff5c1d7c36c8a4 (patch) | |
tree | e7740a7d6455d0736705d513d93ca5040c34c125 /include/libssh/priv.h | |
parent | fe618a35dc4be3e73ddf29d0c4a96b98d3b9c48f (diff) | |
download | libssh-009ca5c9ddd8f27d6397b605f1ff5c1d7c36c8a4.tar.gz libssh-009ca5c9ddd8f27d6397b605f1ff5c1d7c36c8a4.tar.xz libssh-009ca5c9ddd8f27d6397b605f1ff5c1d7c36c8a4.zip |
priv: Add ssize_t if not available with MSVC
Fixes T113
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Tested-by: Wolf Wolfswinkel <wolf.wolfswinkel@objectplus.nl>
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r-- | include/libssh/priv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 31abb106..e5ba96fe 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -29,6 +29,7 @@ #ifndef _LIBSSH_PRIV_H #define _LIBSSH_PRIV_H +#include <stdint.h> #include <stdlib.h> #include <string.h> @@ -128,6 +129,13 @@ char *strndup(const char *s, size_t n); # endif /* HAVE__VSNPRINTF */ # endif /* HAVE__VSNPRINTF_S */ +# ifndef _SSIZE_T_DEFINED +# undef ssize_t +# include <BaseTsd.h> + typedef _W64 SSIZE_T ssize_t; +# define _SSIZE_T_DEFINED +# endif /* _SSIZE_T_DEFINED */ + # endif /* _MSC_VER */ struct timeval; |