#ifndef FD_SETSIZE

/* We presumably have a system without the 4.3 fd_set stuff.
   This includes Suns which have a typedef for fd_set but none
   of the associated baggate like FD_SET, FD_CLR, etc. */

#define fd_set int
#define FD_SETSIZE (8*sizeof(int))
#define FD_SET(fd,fds) (*(fds)|=(1<<(fd)))
#define FD_CLR(fd,fds) (*(fds)&=~(1<<(fd)))
#define FD_ISSET(fd,fds) ((*(fds))&(1<<(fd)))
#define FD_ZERO(fds) (*(fds)=0)

#endif
