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 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.
{
#if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME
clock_gettime (CLOCK_REALTIME, ts);
-#elif HAVE_NANOTIME
- nanotime (ts);
#else
struct timeval tv;
gettimeofday (&tv, NULL);
-# 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,
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])
])