summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2007-12-23 04:45:51 +0000
committerroot <root>2007-12-23 04:45:51 +0000
commit7602195912eb8ac80c00b8a1df790f2a97732feb (patch)
tree7bd2ec4e18168d8c82653f683a198d9155dc11a8
parent9aa7e42975c9c89b27f67364aed821e9637f81ac (diff)
*** empty log message ***
-rw-r--r--ev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 1a4e5f1..24d00d0 100644
--- a/ev.c
+++ b/ev.c
@@ -282,9 +282,11 @@ typedef ev_watcher *W;
typedef ev_watcher_list *WL;
typedef ev_watcher_time *WT;
+#if EV_USE_MONOTONIC
/* sig_atomic_t is used to avoid per-thread variables or locking but still */
/* giving it a reasonably high chance of working on typical architetcures */
static sig_atomic_t have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work? */
+#endif
#ifdef _WIN32
# include "ev_win32.c"