changeset 39850:b3312026aedd

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.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 18 Sep 2018 12:19:02 -0700
parents 482fa4c640fc
children f694826cdc81
files ChangeLog lib/gettime.c m4/gettime.m4
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Sep 18 21:04:48 2018 +0200
+++ b/ChangeLog	Tue Sep 18 12:19:02 2018 -0700
@@ -1,3 +1,11 @@
+2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+	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  <bruno@clisp.org>
 
 	doc: Update statement about target platforms.
--- a/lib/gettime.c	Tue Sep 18 21:04:48 2018 +0200
+++ b/lib/gettime.c	Tue Sep 18 12:19:02 2018 -0700
@@ -30,8 +30,6 @@
 {
 #if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME
   clock_gettime (CLOCK_REALTIME, ts);
-#elif HAVE_NANOTIME
-  nanotime (ts);
 #else
   struct timeval tv;
   gettimeofday (&tv, NULL);
--- a/m4/gettime.m4	Tue Sep 18 21:04:48 2018 +0200
+++ b/m4/gettime.m4	Tue Sep 18 12:19:02 2018 -0700
@@ -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 @@
   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])
 ])