… | |
… | |
47 | |
47 | |
48 | # if HAVE_SELECT && HAVE_SYS_SELECT_H && !defined (EV_USE_SELECT) |
48 | # if HAVE_SELECT && HAVE_SYS_SELECT_H && !defined (EV_USE_SELECT) |
49 | # define EV_USE_SELECT 1 |
49 | # define EV_USE_SELECT 1 |
50 | # endif |
50 | # endif |
51 | |
51 | |
52 | # if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL) && !defined (__APPLE__) |
52 | # if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL) |
53 | # define EV_USE_POLL 1 |
53 | # define EV_USE_POLL 1 |
54 | # endif |
54 | # endif |
55 | |
55 | |
56 | # if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL) |
56 | # if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL) |
57 | # define EV_USE_EPOLL 1 |
57 | # define EV_USE_EPOLL 1 |
58 | # endif |
58 | # endif |
59 | |
59 | |
60 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) && !defined (__APPLE__) |
60 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) |
61 | # define EV_USE_KQUEUE 1 |
61 | # define EV_USE_KQUEUE 1 |
62 | # endif |
62 | # endif |
63 | |
63 | |
64 | #endif |
64 | #endif |
65 | |
65 | |
… | |
… | |
119 | #ifndef EV_USE_REALTIME |
119 | #ifndef EV_USE_REALTIME |
120 | # define EV_USE_REALTIME 1 |
120 | # define EV_USE_REALTIME 1 |
121 | #endif |
121 | #endif |
122 | |
122 | |
123 | /**/ |
123 | /**/ |
|
|
124 | |
|
|
125 | /* darwin simply cnanot be helped */ |
|
|
126 | #ifdef __APPLE__ |
|
|
127 | # undef EV_USE_POLL |
|
|
128 | # undef EV_USE_KQUEUE |
|
|
129 | #endif |
124 | |
130 | |
125 | #ifndef CLOCK_MONOTONIC |
131 | #ifndef CLOCK_MONOTONIC |
126 | # undef EV_USE_MONOTONIC |
132 | # undef EV_USE_MONOTONIC |
127 | # define EV_USE_MONOTONIC 0 |
133 | # define EV_USE_MONOTONIC 0 |
128 | #endif |
134 | #endif |