From: Todd C. Miller Date: Tue, 12 Aug 2003 20:45:22 +0000 (+0000) Subject: We don't use FD_ZERO anymore so just define FD_SET (if not already there). X-Git-Tag: SUDO_1_6_8~302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=769b205c00958a9bffdc34b385f77ec159703997;p=sudo We don't use FD_ZERO anymore so just define FD_SET (if not already there). --- diff --git a/compat.h b/compat.h index 10f1e471e..2177ce19e 100644 --- a/compat.h +++ b/compat.h @@ -69,12 +69,11 @@ #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...