mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 13:03:50 +00:00
Enable kqueue(2) on FreeBSD
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user