mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 15:05:06 -05:00
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.
This commit is contained in:
6
sched.c
6
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;
|
||||
|
||||
Reference in New Issue
Block a user