From 769b205c00958a9bffdc34b385f77ec159703997 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 12 Aug 2003 20:45:22 +0000 Subject: [PATCH] We don't use FD_ZERO anymore so just define FD_SET (if not already there). --- compat.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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... -- 2.50.1