From 42c8ba8f7055cd280b26c80fcad1c9fc921cf8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Podg=C3=B3rski?= Date: Tue, 4 Feb 2020 13:31:40 +0100 Subject: [PATCH] Fix compilation on FreeBSD 12.1 32Bit with GCC 9.2.0 (#119) --- src/zip.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zip.h b/src/zip.h index 45a5826c..cd3ab5cd 100644 --- a/src/zip.h +++ b/src/zip.h @@ -21,7 +21,7 @@ extern "C" { #if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T_DEFINED_) && \ !defined(__DEFINED_ssize_t) && !defined(__ssize_t_defined) && \ - !defined(_SSIZE_T) && !defined(_SSIZE_T_) + !defined(_SSIZE_T) && !defined(_SSIZE_T_) && !defined(_SSIZE_T_DECLARED) // 64-bit Windows is the only mainstream platform // where sizeof(long) != sizeof(void*) @@ -37,6 +37,7 @@ typedef long ssize_t; /* byte count or error */ #define __ssize_t_defined #define _SSIZE_T #define _SSIZE_T_ +#define _SSIZE_T_DECLARED #endif