aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSayed Adel <seiko@imavr.com>2017-07-12 00:17:55 +0200
committerSayed Adel <seiko@imavr.com>2017-07-12 00:17:55 +0200
commit7e93112a90b22177dde3331401ed5164805e914b (patch)
treeba36cdbe21f20c9826aa04a510c8e038c9fbeaf7
parent31e75ce2288fb387705e7da9d5ef21d2b17baa64 (diff)
downloadtigervnc-7e93112a90b22177dde3331401ed5164805e914b.tar.gz
tigervnc-7e93112a90b22177dde3331401ed5164805e914b.zip
ssize_t must be signed even in windows
-rw-r--r--config.h.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/config.h.in b/config.h.in
index 345af7df..2d6db9c6 100644
--- a/config.h.in
+++ b/config.h.in
@@ -11,6 +11,9 @@
/* MS Visual Studio 2008 and newer doesn't know ssize_t */
#if defined(HAVE_GNUTLS) && defined(WIN32) && !defined(__MINGW32__)
-#include <stddef.h>
-typedef size_t ssize_t;
+ #if defined(_WIN64)
+ typedef __int64 ssize_t;
+ #else
+ typedef long ssize_t;
+ #endif
#endif