From: Theodore Tso Date: Thu, 3 Jun 1993 00:06:48 +0000 (+0000) Subject: Added macros for FD_SET and company, if not otherwise defined X-Git-Tag: krb5-1.0-beta3~292 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a21d143f68dc13c6ff6252db77014ec08bc6dc4;p=krb5.git Added macros for FD_SET and company, if not otherwise defined git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2546 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/sysincl.h b/src/include/krb5/sysincl.h index 26ad0d44a..7ab845b58 100644 --- a/src/include/krb5/sysincl.h +++ b/src/include/krb5/sysincl.h @@ -54,6 +54,15 @@ #define L_XTND 2 /* relative to end of file */ #endif /* L_SET */ +#ifndef FD_SET +#define FD_SETSIZE (sizeof (fd_set) * 8) + +#define FD_SET(f,s) ((s)->fds_bits[0] |= (1 << (f))) +#define FD_CLR(f,s) ((s)->fds_bits[0] &= ~(1 << (f))) +#define FD_ISSET(f,s) ((s)->fds_bits[0] & (1 << (f))) +#define FD_ZERO(s) ((s)->fds_bits[0] = 0) +#endif + #if defined(SYSV) || defined(_AIX) #include #endif