]> Savannah Git Hosting - gnulib.git/commitdiff
gettime: nanotime never existed
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 18 Sep 2018 19:19:02 +0000 (12:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 18 Sep 2018 19:23:23 +0000 (12:23 -0700)
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.

ChangeLog
lib/gettime.c
m4/gettime.m4

index 2661001fe6f6bfca604c75c0d0f18c377a79f1c5..ae7b010a386fd49f5c30b347cdbdf77a976dd135 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 171f22476f899eadef562f8efef20a80ced67f55..bb59c44ff0e432349526646479da115d64cffc99 100644 (file)
@@ -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);
index ad355463cce96ed87aa6bcf09e897ac1f8614ce7..671b70d5ab28c90b6491d3fc13bbfcea79942b40 100644 (file)
@@ -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])
 ])