From 821197857097c8d0bac56198cdad433ec8d6aa55 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 22 May 2025 14:56:57 +0200 Subject: [PATCH] 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. --- sched.c | 6 ------ 1 file changed, 6 deletions(-) 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; -- 2.47.2