From 0a21d143f68dc13c6ff6252db77014ec08bc6dc4 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 3 Jun 1993 00:06:48 +0000 Subject: [PATCH] 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 --- src/include/krb5/sysincl.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.26.2