On NeXT, ssize_t is int, not long (see <sys/types.h> -- the definition
authorBodo Möller <bodo@openssl.org>
Sat, 11 Mar 2000 01:29:14 +0000 (01:29 +0000)
committerBodo Möller <bodo@openssl.org>
Sat, 11 Mar 2000 01:29:14 +0000 (01:29 +0000)
is activated only when _POSIX_SOURCE is defined).

e_os.h

diff --git a/e_os.h b/e_os.h
index 869a63dccf96837ef606cbf516236e9cd6f47642..7f5f62d113372fa0b17d22fc4ed56cdd18882ec0 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -271,8 +271,10 @@ extern "C" {
 #      include <sys/types.h>
 #    endif
 #    ifdef NeXT
-#      define pid_t int /* pid_t is missing on NEXTSTEP/OPENSTEP */
-#      define ssize_t long
+#      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"