summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-03-31 13:45:04 (GMT)
committerBrad King <brad.king@kitware.com>2024-04-01 13:55:03 (GMT)
commit0db640268757fad992781ae6fac678fdc8526caf (patch)
tree2eaa94fea60197491a23ddbe5628aaf748b556d8
parent079dfe194b76f1c636235341fdf00d0a421adb48 (diff)
downloadCMake-0db640268757fad992781ae6fac678fdc8526caf.zip
CMake-0db640268757fad992781ae6fac678fdc8526caf.tar.gz
CMake-0db640268757fad992781ae6fac678fdc8526caf.tar.bz2
libuv: process: de-duplicate conditions for using kqueue
Its platform-specific headers provide a dedicated indicator. Backport libuv PR 4378.
-rw-r--r--Utilities/cmlibuv/src/unix/process.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Utilities/cmlibuv/src/unix/process.c b/Utilities/cmlibuv/src/unix/process.c
index 5c39da6..3427847 100644
--- a/Utilities/cmlibuv/src/unix/process.c
+++ b/Utilities/cmlibuv/src/unix/process.c
@@ -81,11 +81,7 @@ extern char **environ;
#ifdef CMAKE_BOOTSTRAP
#define UV_USE_SIGCHLD
-#elif defined(__APPLE__) || \
- defined(__DragonFly__) || \
- defined(__FreeBSD__) || \
- defined(__NetBSD__) || \
- defined(__OpenBSD__)
+#elif defined(UV_HAVE_KQUEUE)
#include <sys/event.h>
#else
#define UV_USE_SIGCHLD