]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
*** empty log message ***
authorMarc Alexander Lehmann <libev@schmorp.de>
Tue, 29 Oct 2013 12:53:38 +0000 (12:53 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Tue, 29 Oct 2013 12:53:38 +0000 (12:53 +0000)
Changes
ev.c

diff --git a/Changes b/Changes
index cb3b1e563111d8061ce7b3011f505184891672d4..474a08890f0ff65fb4bf85d84f1608867e2868a1 100644 (file)
--- 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 4bfbe94ef2489e2472460d397881ee4b66a73567..c8e7fb25374355b911470dba3927feff9e39bf9f 100644 (file)
--- a/ev.c
+++ b/ev.c
 #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