]> granicus.if.org Git - sudo/commitdiff
We don't use FD_ZERO anymore so just define FD_SET (if not already there).
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 12 Aug 2003 20:45:22 +0000 (20:45 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 12 Aug 2003 20:45:22 +0000 (20:45 +0000)
compat.h

index 10f1e471ecd6a46f28afecefeb3a34ed2b3b1fbe..2177ce19ee74aebd4cfd0e21745ed4c37ba71c05 100644 (file)
--- a/compat.h
+++ b/compat.h
 #endif
 
 /*
- * 4.2BSD lacks FD_* macros (we only use FD_SET and FD_ZERO)
+ * 4.2BSD lacks FD_* macros (we only need FD_SET)
  */
-#ifndef FD_SETSIZE
+#ifndef FD_SET
 # define FD_SET(fd, fds)       ((fds) -> fds_bits[0] |= (1 << (fd)))
-# define FD_ZERO(fds)          ((fds) -> fds_bits[0] = 0)
-#endif /* !FD_SETSIZE */
+#endif /* !FD_SET */
 
 /*
  * Posix versions for those without...