summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-11-18 01:25:23 +0000
committerroot <root>2007-11-18 01:25:23 +0000
commit9f2fe8fe52a1e7f7fb9f55586b350e34b5a637b4 (patch)
treebc3d1851a0a361778640d155859d2dc4039026b6 /ev.c
parentc2e069c80086a655611b636be4465141548393fc (diff)
really rely on autoconf
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 3903a6c..d5bf0fe 100644
--- a/ev.c
+++ b/ev.c
@@ -43,26 +43,43 @@ extern "C" {
# ifndef EV_USE_REALTIME
# define EV_USE_REALTIME 1
# endif
+# else
+# ifndef EV_USE_MONOTONIC
+# define EV_USE_MONOTONIC 0
+# endif
+# ifndef EV_USE_REALTIME
+# define EV_USE_REALTIME 0
+# endif
# endif
# if HAVE_SELECT && HAVE_SYS_SELECT_H && !defined (EV_USE_SELECT)
# define EV_USE_SELECT 1
+# else
+# define EV_USE_SELECT 0
# endif
# if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL)
# define EV_USE_POLL 1
+# else
+# define EV_USE_POLL 0
# endif
# if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL)
# define EV_USE_EPOLL 1
+# else
+# define EV_USE_EPOLL 0
# endif
# if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE)
# define EV_USE_KQUEUE 1
+# else
+# define EV_USE_KQUEUE 0
# endif
# if HAVE_PORT_H && HAVE_PORT_CREATE && !defined (EV_USE_PORT)
# define EV_USE_PORT 1
+# else
+# define EV_USE_PORT 0
# endif
#endif