mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:13:31 +03:00
lib518, 537: drop #error on unlikely/impossible build condition
`FD_SETSIZE` is used in core code and expected to be present. Closes #20530
This commit is contained in:
parent
97cf032809
commit
0495425c69
2 changed files with 2 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue