Browse Source

Merge pull request #224 from eataix/enable-freebsd-kqueue

Enable kqueue(2) on FreeBSD
pull/231/head
Max Lv 9 years ago
parent
commit
31cd91a18e
1 changed files with 2 additions and 0 deletions
  1. 2
      libev/ev.c

2
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 */

Loading…
Cancel
Save