This is the first of two commits (didn't want to dump them all into the
[openssl.git] / e_os.h
diff --git a/e_os.h b/e_os.h
index dc28cd6171edf0fb78c21126c58857148e67f5f8..aca01cdc644c1875664b901a3c4b80ebf5d74d36 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -87,6 +87,7 @@ extern "C" {
 #  ifndef MAC_OS_GUSI_SOURCE
 #    define MAC_OS_pre_X
 #    define NO_SYS_TYPES_H
+     typedef long ssize_t;
 #  endif
 #  define NO_SYS_PARAM_H
 #  define NO_CHMOD
@@ -402,6 +403,10 @@ extern HINSTANCE _hInstance;
 #endif
 #endif
 
+#if defined(sun) && !defined(__svr4__) && !defined(__SVR4)
+#define memmove(s1,s2,b) bcopy((s2),(s1),(n))
+#endif
+
 /***********************************************/
 
 /* do we need to do this for getenv.