… | |
… | |
41 | # define EV_USE_MONOTONIC 1 |
41 | # define EV_USE_MONOTONIC 1 |
42 | # endif |
42 | # endif |
43 | # ifndef EV_USE_REALTIME |
43 | # ifndef EV_USE_REALTIME |
44 | # define EV_USE_REALTIME 1 |
44 | # define EV_USE_REALTIME 1 |
45 | # endif |
45 | # endif |
|
|
46 | # else |
|
|
47 | # ifndef EV_USE_MONOTONIC |
|
|
48 | # define EV_USE_MONOTONIC 0 |
|
|
49 | # endif |
|
|
50 | # ifndef EV_USE_REALTIME |
|
|
51 | # define EV_USE_REALTIME 0 |
|
|
52 | # endif |
46 | # endif |
53 | # endif |
47 | |
54 | |
48 | # if HAVE_SELECT && HAVE_SYS_SELECT_H && !defined (EV_USE_SELECT) |
55 | # if HAVE_SELECT && HAVE_SYS_SELECT_H && !defined (EV_USE_SELECT) |
49 | # define EV_USE_SELECT 1 |
56 | # define EV_USE_SELECT 1 |
|
|
57 | # else |
|
|
58 | # define EV_USE_SELECT 0 |
50 | # endif |
59 | # endif |
51 | |
60 | |
52 | # if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL) |
61 | # if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL) |
53 | # define EV_USE_POLL 1 |
62 | # define EV_USE_POLL 1 |
|
|
63 | # else |
|
|
64 | # define EV_USE_POLL 0 |
54 | # endif |
65 | # endif |
55 | |
66 | |
56 | # if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL) |
67 | # if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL) |
57 | # define EV_USE_EPOLL 1 |
68 | # define EV_USE_EPOLL 1 |
|
|
69 | # else |
|
|
70 | # define EV_USE_EPOLL 0 |
58 | # endif |
71 | # endif |
59 | |
72 | |
60 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) |
73 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) |
61 | # define EV_USE_KQUEUE 1 |
74 | # define EV_USE_KQUEUE 1 |
|
|
75 | # else |
|
|
76 | # define EV_USE_KQUEUE 0 |
62 | # endif |
77 | # endif |
63 | |
78 | |
64 | # if HAVE_PORT_H && HAVE_PORT_CREATE && !defined (EV_USE_PORT) |
79 | # if HAVE_PORT_H && HAVE_PORT_CREATE && !defined (EV_USE_PORT) |
65 | # define EV_USE_PORT 1 |
80 | # define EV_USE_PORT 1 |
|
|
81 | # else |
|
|
82 | # define EV_USE_PORT 0 |
66 | # endif |
83 | # endif |
67 | |
84 | |
68 | #endif |
85 | #endif |
69 | |
86 | |
70 | #include <math.h> |
87 | #include <math.h> |