tools/nolibc/types: make FD_SETSIZE configurable
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Feb 2022 08:53:01 +0000 (09:53 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 21 Apr 2022 00:05:43 +0000 (17:05 -0700)
commit306c9fd4c686eebf4e0487bc4ad5dca8e68c19be
treef3df8c393368e53bd6a4a9b6929818702beb6c56
parent8cb98b3fce152e8ba46d1e25515deab08d7ec271
tools/nolibc/types: make FD_SETSIZE configurable

The macro was hard-coded to 256 but it's common to see it redefined.
Let's support this and make sure we always allocate enough entries for
the cases where it wouldn't be multiple of 32.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/types.h