From 03a70edc508c1674666643778942bcadf2997cba Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 17 Oct 2023 08:28:55 +0200 Subject: [PATCH] multi: use pipe instead of socketpair to *wakeup() If pipe() is present. Less overhead. Closes #12142 --- lib/multi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3