--- ray/src/common/selcall.h 2003/06/06 16:38:47 3.6 +++ ray/src/common/selcall.h 2003/06/30 14:59:11 3.9 @@ -1,4 +1,4 @@ -/* RCSid $Id: selcall.h,v 3.6 2003/06/06 16:38:47 schorsch Exp $ */ +/* RCSid $Id: selcall.h,v 3.9 2003/06/30 14:59:11 schorsch Exp $ */ /* * header file for select call compatibility */ @@ -8,16 +8,22 @@ extern "C" { #endif -#include "copyright.h" - +#include #include -#include +#ifdef _WIN32 + /*#include */ +#else + #include +#endif #ifdef INCL_SEL_H #include #endif #ifndef FD_SETSIZE -#include +#ifdef _WIN32 +#else + #include +#endif #define FD_SETSIZE NOFILE /* maximum # select file descriptors */ #endif #ifndef FD_SET @@ -27,11 +33,7 @@ extern "C" { #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS))) #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS))) #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS))) -#ifdef BSD -#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) -#else #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) -#endif #endif