提交 89310b8b 编写于 作者: A Andy Polyakov

include/openssl/e_os2.h: define last-resort SSIZE_MAX.

Reviewed-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NKurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6745)
上级 756c91b1
...@@ -216,6 +216,8 @@ extern "C" { ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册