]> git.llucax.com Git - software/libev.git/commitdiff
fix stop function of idle/check/prepare/child
authorroot <root>
Sun, 11 Nov 2007 01:53:07 +0000 (01:53 +0000)
committerroot <root>
Sun, 11 Nov 2007 01:53:07 +0000 (01:53 +0000)
ev.c

diff --git a/ev.c b/ev.c
index 480d0faf454703e2764af1d07fa4522c8aa322d9..b3112d12c92efebc8e5450cedd82e2433c5cedb8 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -37,8 +37,12 @@ extern "C" {
 # include "config.h"
 
 # if HAVE_CLOCK_GETTIME
-#  define EV_USE_MONOTONIC 1
-#  define EV_USE_REALTIME  1
+#  ifndef EV_USE_MONOTONIC
+#   define EV_USE_MONOTONIC 1
+#  endif
+#  ifndef EV_USE_REALTIME
+#   define EV_USE_REALTIME  1
+#  endif
 # endif
 
 # if HAVE_SELECT && HAVE_SYS_SELECT_H && !defined (EV_USE_SELECT)