From: Paul Eggert Date: Tue, 18 Sep 2018 19:19:02 +0000 (-0700) Subject: gettime: nanotime never existed X-Git-Tag: v1.0~5413 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=36a092b8273a622b3b0a40798bf660f4201a2931;p=gnulib.git gettime: nanotime never existed Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code. * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime. --- diff --git a/ChangeLog b/ChangeLog index 2661001fe6..ae7b010a38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-09-18 Paul Eggert + + gettime: nanotime never existed + Problem reported by Bruno Haible in: + https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html + * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code. + * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime. + 2018-09-18 Bruno Haible doc: Update statement about target platforms. diff --git a/lib/gettime.c b/lib/gettime.c index 171f22476f..bb59c44ff0 100644 --- a/lib/gettime.c +++ b/lib/gettime.c @@ -30,8 +30,6 @@ gettime (struct timespec *ts) { #if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME clock_gettime (CLOCK_REALTIME, ts); -#elif HAVE_NANOTIME - nanotime (ts); #else struct timeval tv; gettimeofday (&tv, NULL); diff --git a/m4/gettime.m4 b/m4/gettime.m4 index ad355463cc..671b70d5ab 100644 --- a/m4/gettime.m4 +++ b/m4/gettime.m4 @@ -1,4 +1,4 @@ -# gettime.m4 serial 8 +# gettime.m4 serial 9 dnl Copyright (C) 2002, 2004-2006, 2009-2018 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,5 +9,5 @@ AC_DEFUN([gl_GETTIME], dnl Prerequisites of lib/gettime.c. AC_REQUIRE([gl_CLOCK_TIME]) AC_REQUIRE([gl_TIMESPEC]) - AC_CHECK_FUNCS_ONCE([gettimeofday nanotime]) + AC_CHECK_FUNCS_ONCE([gettimeofday]) ])