X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=e_os.h;h=d23ab54aaf18b4591a7d2fd9e77ad306107a2861;hp=0c4fcf87411c8d6adadbaac3c72bbf60c1764551;hb=7be5af1ddf7491a2d089bd9f90fbd74bc28fd849;hpb=9a1e34e5deab94717758384d76a20b39ec9ed030;ds=sidebyside diff --git a/e_os.h b/e_os.h index 0c4fcf8741..d23ab54aaf 100644 --- a/e_os.h +++ b/e_os.h @@ -84,8 +84,11 @@ extern "C" { #if defined(__MWERKS__) && defined(macintosh) # if macintosh==1 -# define MAC_OS_pre_X -# define NO_SYS_TYPES_H +# ifndef MAC_OS_GUSI_SOURCE +# define MAC_OS_pre_X +# define NO_SYS_TYPES_H +# endif +# define NO_SYS_PARAM_H # define NO_CHMOD # define NO_SYSLOG # undef DEVRANDOM @@ -104,6 +107,10 @@ extern "C" { # define MS_STATIC #endif +#if defined(_WIN32) && !defined(WIN32) +# define WIN32 +#endif + #if defined(WIN32) || defined(WIN16) # ifndef WINDOWS # define WINDOWS @@ -249,9 +256,14 @@ extern "C" { __VMS_EXIT |= 0x10000000; \ return(n); } while(0) # endif +# define NO_SYS_PARAM_H # else /* !defined VMS */ -# include OPENSLL_UNISTD +# ifdef OPENSSL_UNISTD +# include OPENSSL_UNISTD +# else +# include +# endif # ifndef NO_SYS_TYPES_H # include # endif @@ -303,7 +315,7 @@ extern HINSTANCE _hInstance; # else -# ifndef VMS +# ifndef NO_SYS_PARAM_H # include # endif # include /* Needed under linux for FD_XXX */