From: Miroslav Lichvar Date: Thu, 22 May 2025 12:56:57 +0000 (+0200) Subject: sched: don't define FD_SETSIZE X-Git-Tag: 4.7~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=821197857097c8d0bac56198cdad433ec8d6aa55;p=thirdparty%2Fchrony.git sched: don't define FD_SETSIZE Don't make any assumptions about fd_set size if FD_SETSIZE is missing. POSIX requires the macro to be defined. --- diff --git a/sched.c b/sched.c index 676866ef..973bcaa3 100644 --- a/sched.c +++ b/sched.c @@ -47,12 +47,6 @@ static int initialised = 0; /* One more than the highest file descriptor that is registered */ static unsigned int one_highest_fd; -#ifndef FD_SETSIZE -/* If FD_SETSIZE is not defined, assume that fd_set is implemented - as a fixed size array of bits, possibly embedded inside a record */ -#define FD_SETSIZE (sizeof(fd_set) * 8) -#endif - typedef struct { SCH_FileHandler handler; SCH_ArbitraryArgument arg;