… | |
… | |
972 | } |
972 | } |
973 | |
973 | |
974 | unsigned int |
974 | unsigned int |
975 | ev_embeddable_backends (void) |
975 | ev_embeddable_backends (void) |
976 | { |
976 | { |
|
|
977 | int flags = EVBACKEND_EPOLL | EVBACKEND_KQUEUE | EVBACKEND_PORT; |
|
|
978 | |
977 | /* epoll embeddability broken on all linux versions up to at least 2.6.23 */ |
979 | /* epoll embeddability broken on all linux versions up to at least 2.6.23 */ |
978 | return EVBACKEND_KQUEUE |
980 | /* please fix it and tell me how to detect the fix */ |
979 | | EVBACKEND_PORT; |
981 | flags &= ~EVBACKEND_EPOLL; |
|
|
982 | |
|
|
983 | #ifdef __APPLE__ |
|
|
984 | /* is there anything thats not broken on darwin? */ |
|
|
985 | flags &= ~EVBACKEND_KQUEUE; |
|
|
986 | #endif |
|
|
987 | |
|
|
988 | return flags; |
980 | } |
989 | } |
981 | |
990 | |
982 | unsigned int |
991 | unsigned int |
983 | ev_backend (EV_P) |
992 | ev_backend (EV_P) |
984 | { |
993 | { |