diff options
Diffstat (limited to 'libs/libcurl/src/socketpair.h')
-rw-r--r-- | libs/libcurl/src/socketpair.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/libs/libcurl/src/socketpair.h b/libs/libcurl/src/socketpair.h index d3fa60c135..a68a52f3fe 100644 --- a/libs/libcurl/src/socketpair.h +++ b/libs/libcurl/src/socketpair.h @@ -26,24 +26,7 @@ #include "curl_setup.h"
-#if defined(HAVE_EVENTFD) && \
- defined(__x86_64__) && \
- defined(__aarch64__) && \
- defined(__ia64__) && \
- defined(__ppc64__) && \
- defined(__mips64) && \
- defined(__sparc64__) && \
- defined(__riscv_64e) && \
- defined(__s390x__)
-
-/* Use eventfd only with 64-bit CPU architectures because eventfd has a
- * stringent rule of requiring the 8-byte buffer when calling read(2) and
- * write(2) on it. In some rare cases, the C standard library implementation
- * on a 32-bit system might choose to define uint64_t as a 32-bit type for
- * various reasons (memory limitations, compatibility with older code),
- * which makes eventfd broken.
- */
-#define USE_EVENTFD 1
+#ifdef USE_EVENTFD
#define wakeup_write write
#define wakeup_read read
|