From 74ffdbf3e422a22527da2b3760e4b748047de890 Mon Sep 17 00:00:00 2001 From: Meitian Huang <_@freeaddr.info> Date: Wed, 14 Jan 2015 18:08:52 +1100 Subject: [PATCH] Enable kqueue(2) on FreeBSD --- libev/ev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libev/ev.c b/libev/ev.c index 6f36c6d5..71106e4f 100644 --- a/libev/ev.c +++ b/libev/ev.c @@ -2537,10 +2537,12 @@ ev_recommended_backends (void) EV_THROW unsigned int flags = ev_supported_backends (); #ifndef __NetBSD__ +#ifndef __FreeBSD__ /* kqueue is borked on everything but netbsd apparently */ /* it usually doesn't work correctly on anything but sockets and pipes */ flags &= ~EVBACKEND_KQUEUE; #endif +#endif #ifdef __APPLE__ /* only select works correctly on that "unix-certified" platform */ flags &= ~EVBACKEND_KQUEUE; /* horribly broken, even for sockets */