| 1 |
< |
/* Copyright (c) 1997 Silicon Graphics, Inc. */ |
| 2 |
< |
|
| 3 |
< |
/* SCCSid "$SunId$ SGI" */ |
| 4 |
< |
|
| 1 |
> |
/* RCSid $Id$ */ |
| 2 |
|
/* |
| 3 |
|
* header file for select call compatibility |
| 4 |
|
*/ |
| 5 |
+ |
#ifndef _RAD_SELCALL_H_ |
| 6 |
+ |
#define _RAD_SELCALL_H_ |
| 7 |
+ |
#ifdef __cplusplus |
| 8 |
+ |
extern "C" { |
| 9 |
+ |
#endif |
| 10 |
|
|
| 11 |
+ |
#include "copyright.h" |
| 12 |
+ |
|
| 13 |
|
#include <sys/types.h> |
| 14 |
< |
#include <sys/time.h> |
| 14 |
> |
#ifdef _WIN32 |
| 15 |
> |
/*#include <winsock2.h>*/ |
| 16 |
> |
#else |
| 17 |
> |
#include <sys/time.h> |
| 18 |
> |
#endif |
| 19 |
|
#ifdef INCL_SEL_H |
| 20 |
|
#include <sys/select.h> |
| 21 |
|
#endif |
| 22 |
|
|
| 23 |
|
#ifndef FD_SETSIZE |
| 24 |
< |
#include <sys/param.h> |
| 24 |
> |
#ifdef _WIN32 |
| 25 |
> |
#else |
| 26 |
> |
#include <sys/param.h> |
| 27 |
> |
#endif |
| 28 |
|
#define FD_SETSIZE NOFILE /* maximum # select file descriptors */ |
| 29 |
|
#endif |
| 30 |
|
#ifndef FD_SET |
| 40 |
|
#define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) |
| 41 |
|
#endif |
| 42 |
|
#endif |
| 43 |
+ |
|
| 44 |
+ |
|
| 45 |
+ |
#ifdef __cplusplus |
| 46 |
+ |
} |
| 47 |
+ |
#endif |
| 48 |
+ |
#endif /* _RAD_SELCALL_H_ */ |