ssize_t for Ultrix
[openssl.git] / e_os.h
diff --git a/e_os.h b/e_os.h
index 3eff833efb13ece7d8701bd3e9d1e4d60a039129..dc28cd6171edf0fb78c21126c58857148e67f5f8 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -194,9 +194,7 @@ extern "C" {
 #  include <io.h>
 #  include <fcntl.h>
 
-#  ifdef __MINGW32__
-#    define ssize_t long
-#  endif
+#  define ssize_t long
 
 #  if defined (__BORLANDC__)
 #    define _setmode setmode
@@ -271,13 +269,7 @@ extern "C" {
                                     exit(__VMS_EXIT); \
                                     return(__VMS_EXIT); } while(0)
 #    else
-#      define EXIT(n)          do { int __VMS_EXIT = n; \
-                                     if (__VMS_EXIT == 0) \
-                                      __VMS_EXIT = 1; \
-                                    else \
-                                      __VMS_EXIT = (n << 3) | 2; \
-                                     __VMS_EXIT |= 0x10000000; \
-                                    return(__VMS_EXIT); } while(0)
+#      define EXIT(n)          return(n)
 #    endif
 #    define NO_SYS_PARAM_H
 #  else
@@ -398,6 +390,12 @@ extern HINSTANCE _hInstance;
 #  endif
 #endif
 
+#if defined(__ultrix)
+#  ifndef ssize_t
+#    define ssize_t int 
+#  endif
+#endif
+
 #if defined(THREADS) || defined(sun)
 #ifndef _REENTRANT
 #define _REENTRANT