include/openssl/e_os2.h: define last-resort SSIZE_MAX.
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Kurt Roeckx <kurt@roeckx.be> (Merged from https://github.com/openssl/openssl/pull/6745)
This commit is contained in:
parent
756c91b163
commit
89310b8b0f
1 changed files with 2 additions and 0 deletions
|
@ -216,6 +216,8 @@ extern "C" {
|
||||||
# define OSSL_SSIZE_MAX SSIZE_MAX
|
# define OSSL_SSIZE_MAX SSIZE_MAX
|
||||||
# elif defined(_POSIX_SSIZE_MAX)
|
# elif defined(_POSIX_SSIZE_MAX)
|
||||||
# define OSSL_SSIZE_MAX _POSIX_SSIZE_MAX
|
# define OSSL_SSIZE_MAX _POSIX_SSIZE_MAX
|
||||||
|
# else
|
||||||
|
# define OSSL_SSIZE_MAX ((ssize_t)(SIZE_MAX>>1))
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue