diff --git a/src/ca/os_depen.h b/src/ca/os_depen.h index 3e1e12bc4..098f191ac 100644 --- a/src/ca/os_depen.h +++ b/src/ca/os_depen.h @@ -51,6 +51,9 @@ static char *os_depenhSccsId = "$Id$"; # include # include # include +# include +# include +# include # define CA_OS_CONFIGURED #endif @@ -123,16 +126,16 @@ static char *os_depenhSccsId = "$Id$"; # define CA_OS_CONFIGURED #endif /*VMS*/ -#ifdef _WINDOWS +#ifdef WIN32 # include # include # include # include # define CA_OS_CONFIGURED -#endif /*_WINDOWS*/ +#endif /*WIN32*/ #ifndef CA_OS_CONFIGURED -#error Please define one of vxWorks, UNIX VMS, or _WINDOWS +#error Please define one of vxWorks, UNIX, VMS, or WIN32 #endif /* @@ -213,6 +216,13 @@ static char *os_depenhSccsId = "$Id$"; #define DELAYTICKS 50L /* (adjust units below) */ #define TICKSPERSEC 1000L /* mili sec per sec */ +/* + * BSD prototypes missing from SUNOS4, MULTINET and + * perhaps other environments + */ +#include +#include + /* * order of ops is important here * @@ -290,7 +300,7 @@ static char *os_depenhSccsId = "$Id$"; # define INVALID_SOCKET (-1) #endif -#ifdef _WINDOWS +#ifdef WIN32 # define LOCK # define UNLOCK # define LOCKEVENTS @@ -308,7 +318,7 @@ static char *os_depenhSccsId = "$Id$"; # define MYERRNO WSAGetLastError() # define POST_IO_EV # define SYSFREQ 1000000L /* 1 MHz */ -#endif /*_WINDOWS*/ +#endif /*WIN32*/ #endif