--- ray/src/common/selcall.h 2003/02/25 02:47:22 3.5 +++ ray/src/common/selcall.h 2003/07/14 22:23:59 3.10 @@ -1,18 +1,26 @@ -/* RCSid $Id: selcall.h,v 3.5 2003/02/25 02:47:22 greg Exp $ */ +/* RCSid $Id: selcall.h,v 3.10 2003/07/14 22:23:59 schorsch Exp $ */ /* * header file for select call compatibility */ +#ifndef _RAD_SELCALL_H_ +#define _RAD_SELCALL_H_ -#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 @@ -22,9 +30,16 @@ #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 + +#ifdef __cplusplus +extern "C" { #endif + +/* nothing yet */ + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_SELCALL_H_ */