summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ev.c b/ev.c
index 480d0fa..b3112d1 100644
--- 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)