From: Daniel Stenberg Date: Tue, 17 Oct 2023 06:28:55 +0000 (+0200) Subject: multi: use pipe instead of socketpair to *wakeup() X-Git-Tag: curl-8_5_0~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03a70edc508c1674666643778942bcadf2997cba;p=thirdparty%2Fcurl.git multi: use pipe instead of socketpair to *wakeup() If pipe() is present. Less overhead. Closes #12142 --- diff --git a/lib/multi.c b/lib/multi.c index ff753ac8ce..5ee331c740 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -55,14 +55,14 @@ #include "curl_memory.h" #include "memdebug.h" -#ifdef __APPLE__ +#ifdef HAVE_PIPE #define wakeup_write write #define wakeup_read read #define wakeup_close close #define wakeup_create pipe -#else /* __APPLE__ */ +#else /* HAVE_PIPE */ #define wakeup_write swrite #define wakeup_read sread