summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes4
-rw-r--r--ev.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/Changes b/Changes
index cb3b1e5..474a088 100644
--- a/Changes
+++ b/Changes
@@ -13,11 +13,13 @@ TODO: store loop pid_t and compare isndie signal handler,store 1 for same, 2 for
TODO: embed watchers need updating when fd changes
TODO: document portbaility requirements for atomic pointer access
-TODO: glibc >=2.17 do not need -lrt for clock_xxx
- mark event pipe fd as cloexec after a fork (analyzed by Sami Farin).
- (ecb) support m68k, m88k and sh (patch by Miod Vallat).
- use a reasonable fallback for EV_NSIG instead of erroring out
when we can't detect the signal set size.
+ - in the absence of autoconf, do not use the clock syscall
+ on glibc >= 2.17 (avoids the syscall AND -lrt on systems
+ doing clock_gettime in userspace).
4.15 Fri Mar 1 12:04:50 CET 2013
- destroying a non-default loop would stop the global waitpid
diff --git a/ev.c b/ev.c
index 4bfbe94..c8e7fb2 100644
--- a/ev.c
+++ b/ev.c
@@ -251,7 +251,7 @@
#endif
#ifndef EV_USE_CLOCK_SYSCALL
-# if __linux && __GLIBC__ >= 2
+# if __linux && __GLIBC__ == 2 && __GLIBC_MINOR__ < 17
# define EV_USE_CLOCK_SYSCALL EV_FEATURE_OS
# else
# define EV_USE_CLOCK_SYSCALL 0