libuv: process: de-duplicate conditions for using kqueue

Its platform-specific headers provide a dedicated indicator.

Backport libuv PR 4378.
This commit is contained in:
Brad King
2024-03-31 09:45:04 -04:00
parent 079dfe194b
commit 0db6402687

View File

@@ -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