diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/krb5/sysincl.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <fcntl.h> #endif |
