#including the correct header for ssize_t.

AEAD-related code could not be compiled on Mac and Windows
because the proper header file was not included and
SSIZE_MAX macro was missing.
This patch is a sort of workaround to make them compiled on Mac and Windows.

Non goal: care about all platforms that does not have ssize_t.
See the code review for details.

Review URL: https://codereview.chromium.org/98403012

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/openssl@240240 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/openssl/e_os2.h b/openssl/e_os2.h
index d22c036..ad63669 100644
--- a/openssl/e_os2.h
+++ b/openssl/e_os2.h
@@ -289,6 +289,15 @@
 # define OPENSSL_GLOBAL_REF(name) _shadow_##name
 #endif
 
+#ifdef OPENSSL_SYS_WINDOWS
+#  include <BaseTsd.h>
+#  define ssize_t SSIZE_T
+#endif
+
+#ifdef OPENSSL_SYS_MACOSX
+#  include <sys/types.h>
+#endif
+
 #if defined(OPENSSL_SYS_MACINTOSH_CLASSIC) && macintosh==1 && !defined(MAC_OS_GUSI_SOURCE)
 #  define ossl_ssize_t long
 #endif
@@ -309,6 +318,10 @@
 #  define ossl_ssize_t ssize_t
 #endif
 
+#ifndef SSIZE_MAX
+#define SSIZE_MAX ((ssize_t)(((size_t)-1)/2))
+#endif
+
 #ifdef  __cplusplus
 }
 #endif