diff options
author | Andy Polyakov <appro@openssl.org> | 1999-12-19 19:07:19 +0300 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 1999-12-19 19:07:19 +0300 |
commit | 9a1e34e5deab94717758384d76a20b39ec9ed030 (patch) | |
tree | 36a577bff8b3f476da053ccdf0ab34ae4f0874a2 /e_os.h | |
parent | 2b6313d0da133725bd9e01f8adef320bcfeb4487 (diff) |
MacOS updates.
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -88,6 +88,8 @@ extern "C" { # define NO_SYS_TYPES_H # define NO_CHMOD # define NO_SYSLOG +# undef DEVRANDOM +# define GETPID_IS_MEANINGLESS # endif #endif @@ -111,6 +113,10 @@ extern "C" { # endif #endif +#if defined(MSDOS) && !defined(GETPID_IS_MEANINGLESS) +# define GETPID_IS_MEANINGLESS +#endif + #ifdef WIN32 #define get_last_sys_error() GetLastError() #define clear_sys_error() SetLastError(0) @@ -128,7 +134,7 @@ extern "C" { #define readsocket(s,b,n) recv((s),(b),(n),0) #define writesocket(s,b,n) send((s),(b),(n),0) #define EADDRINUSE WSAEADDRINUSE -#elif MAC_OS_pre_X +#elif defined(MAC_OS_pre_X) #define get_last_socket_error() errno #define clear_socket_error() errno=0 #define closesocket(s) MacSocket_close(s) @@ -245,8 +251,10 @@ extern "C" { # endif # else /* !defined VMS */ -# include OPENSSL_UNISTD -# include <sys/types.h> +# include OPENSLL_UNISTD +# ifndef NO_SYS_TYPES_H +# include <sys/types.h> +# endif # define OPENSSL_CONF "openssl.cnf" # define SSLEAY_CONF OPENSSL_CONF |