mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
0dc10e0d1c
commit
7efb83393c
5 changed files with 48 additions and 35 deletions
1
configure
vendored
1
configure
vendored
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue