summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-09-18 12:19:02 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-09-18 12:23:23 -0700
commit36a092b8273a622b3b0a40798bf660f4201a2931 (patch)
tree9336d60a5cc5cc28080bd3dfdd17c885f3f2173c
parent1ec162b8c1abbf51e55d54c36d69a2bc90b991db (diff)
downloadgnulib-36a092b8273a622b3b0a40798bf660f4201a2931.tar.gz
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.
-rw-r--r--ChangeLog8
-rw-r--r--lib/gettime.c2
-rw-r--r--m4/gettime.m44
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2661001fe6..ae7b010a38 100644
--- 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.
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])
])