… | |
… | |
115 | # else |
115 | # else |
116 | # undef EV_USE_EPOLL |
116 | # undef EV_USE_EPOLL |
117 | # define EV_USE_EPOLL 0 |
117 | # define EV_USE_EPOLL 0 |
118 | # endif |
118 | # endif |
119 | |
119 | |
|
|
120 | # if HAVE_LINUX_AIO_ABI_H |
|
|
121 | # ifndef EV_USE_LINUXAIO |
|
|
122 | # define EV_USE_LINUXAIO EV_FEATURE_BACKENDS |
|
|
123 | # endif |
|
|
124 | # else |
|
|
125 | # undef EV_USE_LINUXAIO |
|
|
126 | # define EV_USE_LINUXAIO 0 |
|
|
127 | # endif |
|
|
128 | |
120 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H |
129 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H |
121 | # ifndef EV_USE_KQUEUE |
130 | # ifndef EV_USE_KQUEUE |
122 | # define EV_USE_KQUEUE EV_FEATURE_BACKENDS |
131 | # define EV_USE_KQUEUE EV_FEATURE_BACKENDS |
123 | # endif |
132 | # endif |
124 | # else |
133 | # else |
… | |
… | |
424 | |
433 | |
425 | #if !EV_USE_NANOSLEEP |
434 | #if !EV_USE_NANOSLEEP |
426 | /* hp-ux has it in sys/time.h, which we unconditionally include above */ |
435 | /* hp-ux has it in sys/time.h, which we unconditionally include above */ |
427 | # if !defined _WIN32 && !defined __hpux |
436 | # if !defined _WIN32 && !defined __hpux |
428 | # include <sys/select.h> |
437 | # include <sys/select.h> |
|
|
438 | # endif |
|
|
439 | #endif |
|
|
440 | |
|
|
441 | #if EV_USE_LINUXAIO |
|
|
442 | # include <sys/syscall.h> |
|
|
443 | # if !SYS_io_getevents |
|
|
444 | # undef EV_USE_LINUXAIO |
|
|
445 | # define EV_USE_LINUXAIO 0 |
429 | # endif |
446 | # endif |
430 | #endif |
447 | #endif |
431 | |
448 | |
432 | #if EV_USE_INOTIFY |
449 | #if EV_USE_INOTIFY |
433 | # include <sys/statfs.h> |
450 | # include <sys/statfs.h> |
… | |
… | |
2785 | #endif |
2802 | #endif |
2786 | #ifdef __FreeBSD__ |
2803 | #ifdef __FreeBSD__ |
2787 | flags &= ~EVBACKEND_POLL; /* poll return value is unusable (http://forums.freebsd.org/archive/index.php/t-10270.html) */ |
2804 | flags &= ~EVBACKEND_POLL; /* poll return value is unusable (http://forums.freebsd.org/archive/index.php/t-10270.html) */ |
2788 | #endif |
2805 | #endif |
2789 | |
2806 | |
|
|
2807 | /* TODO: linuxaio is very experimental */ |
|
|
2808 | flags &= ~EVBACKEND_LINUXAIO; |
|
|
2809 | |
2790 | return flags; |
2810 | return flags; |
2791 | } |
2811 | } |
2792 | |
2812 | |
2793 | ecb_cold |
2813 | ecb_cold |
2794 | unsigned int |
2814 | unsigned int |