From 89310b8b0f4dbe207ffd9056109fad9abab6e4d4 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Thu, 19 Jul 2018 15:16:38 +0200 Subject: [PATCH] include/openssl/e_os2.h: define last-resort SSIZE_MAX. Reviewed-by: Rich Salz Reviewed-by: Kurt Roeckx (Merged from https://github.com/openssl/openssl/pull/6745) --- include/openssl/e_os2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/openssl/e_os2.h b/include/openssl/e_os2.h index be0ee200ca..eeae215445 100644 --- a/include/openssl/e_os2.h +++ b/include/openssl/e_os2.h @@ -216,6 +216,8 @@ extern "C" { # define OSSL_SSIZE_MAX SSIZE_MAX # elif defined(_POSIX_SSIZE_MAX) # define OSSL_SSIZE_MAX _POSIX_SSIZE_MAX +# else +# define OSSL_SSIZE_MAX ((ssize_t)(SIZE_MAX>>1)) # endif # endif -- 2.25.1