Include FD_SETSIZE on RTEMS to 256
Joel Sherrill <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <CAF9ehCU8MjXkbzm7NzMdtzcqT20hEJEw74rdEaqxJWBWHXO56w@mail.gmail.com> |
Hi The attached patch changes FD_SETSIZE from 64 to 256 for RTEMS. Is it OK to apply? Thanks. --joel
0001-RTEMS-Increase-FS_SETSIZE-to-256-bits.patch
(application/octet-stream, 690 B)
From 081fc6c8e64568cef8bcd9c254e72cbfb8de1a2d Mon Sep 17 00:00:00 2001 From: Chris Johns <[email protected]> Date: Tue, 20 Feb 2024 11:46:05 +1100 Subject: [PATCH] RTEMS: Increase FS_SETSIZE to 256 bits --- newlib/libc/include/sys/select.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newlib/libc/include/sys/select.h b/newlib/libc/include/sys/select.h index 93d0b79bf..8b5675640 100644 --- a/newlib/libc/include/sys/select.h +++ b/newlib/libc/include/sys/select.h @@ -30,6 +30,8 @@ typedef __sigset_t sigset_t; #ifndef FD_SETSIZE # ifdef __CYGWIN__ # define FD_SETSIZE 1024 +# elifdef __rtems__ +# define FD_SETSIZE 256 # else # define FD_SETSIZE 64 # endif -- 2.42.0