From bbbe8b338b4e31ce315f97562906a013240bd621 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 21 Nov 2015 01:27:44 +0000 Subject: re PR go/66574 (Time is provided in millisecond precision instead of nanoseconds as described in go documentation) PR go/66574 runtime: Use clock_gettime to get current time. Fetch the current time in nanoseconds, not microseconds, by using clock_gettime rather than gettimeofday. Update golang/go#11222. Fixes https://gcc.gnu.org/PR66574. Reviewed-on: https://go-review.googlesource.com/17156 From-SVN: r230694 --- libgo/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libgo/configure.ac') diff --git a/libgo/configure.ac b/libgo/configure.ac index 6e23a85..6eddb86 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -501,9 +501,10 @@ PTHREAD_LIBS= AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS=-lpthread) AC_SUBST(PTHREAD_LIBS) -dnl Test if -lrt is required for sched_yield and/or nanosleep. +dnl Test if -lrt is required for sched_yield or nanosleep or clock_gettime. AC_SEARCH_LIBS([sched_yield], [rt]) AC_SEARCH_LIBS([nanosleep], [rt]) +AC_SEARCH_LIBS([clock_gettime], [rt]) AC_C_BIGENDIAN -- cgit v1.1