#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
# define MS_STATIC
#endif
+#if defined(_WIN32) && !defined(WIN32)
+# define WIN32
+#endif
+
#if defined(WIN32) || defined(WIN16)
# ifndef WINDOWS
# define WINDOWS
__VMS_EXIT |= 0x10000000; \
return(n); } while(0)
# endif
+# define NO_SYS_PARAM_H
# else
/* !defined VMS */
# ifdef OPENSSL_UNISTD
-# include OPENSLL_UNISTD
+# include OPENSSL_UNISTD
# else
# include <unistd.h>
# endif
# else
-# ifndef VMS
+# ifndef NO_SYS_PARAM_H
# include <sys/param.h>
# endif
# include <sys/time.h> /* Needed under linux for FD_XXX */