… | |
… | |
95 | # define EV_USE_MONOTONIC 1 |
95 | # define EV_USE_MONOTONIC 1 |
96 | #endif |
96 | #endif |
97 | |
97 | |
98 | #ifndef EV_USE_SELECT |
98 | #ifndef EV_USE_SELECT |
99 | # define EV_USE_SELECT 1 |
99 | # define EV_USE_SELECT 1 |
|
|
100 | # define EV_SELECT_USE_FD_SET 1 |
100 | #endif |
101 | #endif |
101 | |
102 | |
102 | #ifndef EV_USE_POLL |
103 | #ifndef EV_USE_POLL |
103 | # define EV_USE_POLL 0 /* poll is usually slower than select, and not as well tested */ |
104 | # ifdef _WIN32 |
|
|
105 | # define EV_USE_POLL 0 |
|
|
106 | # else |
|
|
107 | # define EV_USE_POLL 1 |
|
|
108 | # endif |
104 | #endif |
109 | #endif |
105 | |
110 | |
106 | #ifndef EV_USE_EPOLL |
111 | #ifndef EV_USE_EPOLL |
107 | # define EV_USE_EPOLL 0 |
112 | # define EV_USE_EPOLL 0 |
108 | #endif |
113 | #endif |
… | |
… | |
114 | #ifndef EV_USE_REALTIME |
119 | #ifndef EV_USE_REALTIME |
115 | # define EV_USE_REALTIME 1 |
120 | # define EV_USE_REALTIME 1 |
116 | #endif |
121 | #endif |
117 | |
122 | |
118 | /**/ |
123 | /**/ |
|
|
124 | |
|
|
125 | /* darwin simply cnanot be helped */ |
|
|
126 | #ifdef __APPLE__ |
|
|
127 | # undef EV_USE_POLL |
|
|
128 | # undef EV_USE_KQUEUE |
|
|
129 | #endif |
119 | |
130 | |
120 | #ifndef CLOCK_MONOTONIC |
131 | #ifndef CLOCK_MONOTONIC |
121 | # undef EV_USE_MONOTONIC |
132 | # undef EV_USE_MONOTONIC |
122 | # define EV_USE_MONOTONIC 0 |
133 | # define EV_USE_MONOTONIC 0 |
123 | #endif |
134 | #endif |