RT4318: Fix OSSL_SSIZE_MAX for UEFI build
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 17 Feb 2016 14:11:32 +0000 (14:11 +0000)
committerRich Salz <rsalz@openssl.org>
Wed, 17 Feb 2016 15:39:35 +0000 (10:39 -0500)
Commit e634b448c ("Defines OSSL_SSIZE_MAX") introduced a definition of
OSSL_SSIZE_MAX which broke the UEFI build. Fix that by making UEFI take
the same definition as Ultrix (ssize_t == int).

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
include/openssl/e_os2.h

index 1a1fe3ebdf8de0534a791337f5a625b924f2a69a..8cf6c842726724e31058105469e38ffaacd0c689 100644 (file)
@@ -269,7 +269,7 @@ extern "C" {
 #  endif
 # endif
 
-# if defined(__ultrix) && !defined(ssize_t)
+# if (defined(__ultrix) || defined(OPENSSL_SYS_UEFI)) && !defined(ssize_t)
 #  define ossl_ssize_t int
 #  define OSSL_SSIZE_MAX INT_MAX
 # endif