From: Viktor Szakats Date: Thu, 5 Feb 2026 21:10:03 +0000 (+0100) Subject: lib518, 537: drop `#error` on unlikely/impossible build condition X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0495425c69a7dc58766f149896b040c02926dbc9;p=thirdparty%2Fcurl.git lib518, 537: drop `#error` on unlikely/impossible build condition `FD_SETSIZE` is used in core code and expected to be present. Closes #20530 --- diff --git a/tests/libtest/lib518.c b/tests/libtest/lib518.c index 3a0b3b9537..5c50ca5cbf 100644 --- a/tests/libtest/lib518.c +++ b/tests/libtest/lib518.c @@ -25,10 +25,6 @@ #include "testutil.h" -#ifndef FD_SETSIZE -#error "this test requires FD_SETSIZE" -#endif - #define T518_SAFETY_MARGIN 16 #define NUM_OPEN (FD_SETSIZE + 10) @@ -345,7 +341,6 @@ static int t518_test_rlimit(int keep_open) curl_mfprintf(stderr, "%s file descriptors open\n", strbuff); #if !defined(HAVE_POLL) && !defined(USE_WINSOCK) - /* * when using select() instead of poll() we cannot test * libcurl functionality with a socket number equal or @@ -383,8 +378,7 @@ static int t518_test_rlimit(int keep_open) return -11; } } - -#endif /* using an FD_SETSIZE bound select() */ +#endif /* !HAVE_POLL && !USE_WINSOCK */ /* * Old or 'backwards compatible' implementations of stdio do not allow diff --git a/tests/libtest/lib537.c b/tests/libtest/lib537.c index 23e0e5c3e9..82b92a02ad 100644 --- a/tests/libtest/lib537.c +++ b/tests/libtest/lib537.c @@ -25,10 +25,6 @@ #include "testutil.h" -#if !defined(HAVE_POLL) && !defined(USE_WINSOCK) && !defined(FD_SETSIZE) -#error "this test requires FD_SETSIZE" -#endif - #define T537_SAFETY_MARGIN 11 #if defined(_WIN32) || defined(MSDOS) @@ -360,7 +356,6 @@ static int t537_test_rlimit(int keep_open) curl_mfprintf(stderr, "%s file descriptors open\n", strbuff); #if !defined(HAVE_POLL) && !defined(USE_WINSOCK) - /* * when using select() instead of poll() we cannot test * libcurl functionality with a socket number equal or @@ -398,8 +393,7 @@ static int t537_test_rlimit(int keep_open) return -9; } } - -#endif /* using an FD_SETSIZE bound select() */ +#endif /* !HAVE_POLL && !USE_WINSOCK */ /* * Old or 'backwards compatible' implementations of stdio do not allow