Issue #22287: On UNIX, _PyTime_gettimeofday() now uses

clock_gettime(CLOCK_REALTIME) if available. As a side effect, Python now
depends on the librt library on Solaris and on Linux (only with glibc older
than 2.17).
This commit is contained in:
Victor Stinner 2014-08-29 15:41:08 +02:00
parent 0dc10e0d1c
commit 7efb83393c
5 changed files with 48 additions and 35 deletions

1
configure vendored
View file

@ -11904,6 +11904,7 @@ fi
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
LIBS="$LIBS -lrt"
$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h