unix: de-duplicate conditions for using kqueue (#4378)

Our platform-specific headers provide a dedicated indicator.
This commit is contained in:
Brad King 2024-04-14 05:13:21 -04:00 committed by GitHub
parent 17219b8f39
commit f50ae53c42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,11 +63,7 @@ extern char **environ;
# include "zos-base.h"
#endif
#if defined(__APPLE__) || \
defined(__DragonFly__) || \
defined(__FreeBSD__) || \
defined(__NetBSD__) || \
defined(__OpenBSD__)
#ifdef UV_HAVE_KQUEUE
#include <sys/event.h>
#else
#define UV_USE_SIGCHLD