summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-11-11 01:50:36 +0000
committerroot <root>2007-11-11 01:50:36 +0000
commit768c054f55b73450822bd8c4358a4187cd1b8df8 (patch)
tree25920ad8d127efc2bac555a6ff47d384a8eff1e5 /ev.c
parentb6461205c4fecf83ffc3ffe41e49519cb71059f1 (diff)
fix stop function of idle/check/prepare/child
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ev.c b/ev.c
index 5aca9ec..480d0fa 100644
--- a/ev.c
+++ b/ev.c
@@ -41,19 +41,19 @@ extern "C" {
# define EV_USE_REALTIME 1
# endif
-# if HAVE_SELECT && HAVE_SYS_SELECT_H
+# if HAVE_SELECT && HAVE_SYS_SELECT_H && !defined (EV_USE_SELECT)
# define EV_USE_SELECT 1
# endif
-# if HAVE_POLL && HAVE_POLL_H
+# if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL)
# define EV_USE_POLL 1
# endif
-# if HAVE_EPOLL && HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H
+# if HAVE_EPOLL && HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL)
# define EV_USE_EPOLL 1
# endif
-# if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H
+# if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE)
# define EV_USE_KQUEUE 1
# endif