Typo corrected.
[openssl.git] / e_os.h
diff --git a/e_os.h b/e_os.h
index 1e06e0a2fe50eec3b6c39ca952ac6e9920c21993..7f5f62d113372fa0b17d22fc4ed56cdd18882ec0 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -194,6 +194,10 @@ extern "C" {
 #  include <io.h>
 #  include <fcntl.h>
 
+#  ifdef __MINGW32__
+#    define ssize_t long
+#  endif
+
 #  if defined (__BORLANDC__)
 #    define _setmode setmode
 #    define _O_TEXT O_TEXT
@@ -267,7 +271,10 @@ extern "C" {
 #      include <sys/types.h>
 #    endif
 #    ifdef NeXT
-#      define pid_t int /* pid_t is missing on NEXTSTEP/OPENSTEP */
+#      define pid_t int /* pid_t is missing on NEXTSTEP/OPENSTEP
+                         * (unless when compiling with -D_POSIX_SOURCE,
+                         * which doesn't work for us) */
+#      define ssize_t int /* ditto */
 #    endif
 
 #    define OPENSSL_CONF       "openssl.cnf"