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>
Mon, 14 Feb 2022 18:48:23 +0000 (10:48 -0800)
commit2e21a7cfff2b0ccdd45c20b7ee54adb93d391c31
tree3d1613dc923bcd320d2b9a65a438d28fe3b22660
parentd0c4ca283607b231a40f3211d57434bdc044c125
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