socketpair: allow CURL_DISABLE_SOCKETPAIR

... to completely disable the use of socketpair
This commit is contained in:
Daniel Stenberg 2020-08-14 15:45:08 +02:00
parent 861b45423d
commit b4a712dab0
2 changed files with 4 additions and 4 deletions

View file

@ -67,11 +67,11 @@ typedef enum {
#define CURLPIPE_ANY (CURLPIPE_MULTIPLEX)
#if defined(USE_SOCKETPAIR) && !defined(USE_BLOCKING_SOCKETS)
#if defined(USE_SOCKETPAIR) && !defined(USE_BLOCKING_SOCKETS) && \
!defined(CURL_DISABLE_SOCKETPAIR)
#define ENABLE_WAKEUP
#endif
/* value for MAXIMUM CONCURRENT STREAMS upper limit */
#define INITIAL_MAX_CONCURRENT_STREAMS ((1U << 31) - 1)