Enable kqueue(2) on FreeBSD

This commit is contained in:
Meitian Huang
2015-01-14 18:08:52 +11:00
parent 76f3a7f358
commit 74ffdbf3e4
+2
View File
@@ -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 */