--- ray/src/common/selcall.h 1997/10/31 14:49:37 3.3 +++ ray/src/common/selcall.h 2016/03/06 01:13:17 3.11 @@ -1,19 +1,26 @@ -/* Copyright (c) 1997 Silicon Graphics, Inc. */ - -/* SCCSid "$SunId$ SGI" */ - +/* RCSid $Id: selcall.h,v 3.11 2016/03/06 01:13:17 schorsch Exp $ */ /* * header file for select call compatibility */ +#ifndef _RAD_SELCALL_H_ +#define _RAD_SELCALL_H_ +#include #include -#include +#if defined(_WIN32) || defined(_WIN64) + /*#include */ +#else + #include +#endif #ifdef INCL_SEL_H #include #endif #ifndef FD_SETSIZE -#include +#if defined(_WIN32) || defined(_WIN64) +#else + #include +#endif #define FD_SETSIZE NOFILE /* maximum # select file descriptors */ #endif #ifndef FD_SET @@ -23,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_ */