From 7e93112a90b22177dde3331401ed5164805e914b Mon Sep 17 00:00:00 2001 From: Sayed Adel Date: Wed, 12 Jul 2017 00:17:55 +0200 Subject: [PATCH] ssize_t must be signed even in windows --- config.h.in | 7 +++++-- 1 file 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 -typedef size_t ssize_t; + #if defined(_WIN64) + typedef __int64 ssize_t; + #else + typedef long ssize_t; + #endif #endif -- 2.39.5