Paul Eggert wrote: > --- a/lib/gettime.c > +++ b/lib/gettime.c > @@ -30,6 +30,8 @@ gettime (struct timespec *ts) > { > #if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME > clock_gettime (CLOCK_REALTIME, ts); > +#elif defined HAVE_TIMESPEC_GET > + timespec_get (ts, TIME_UTC); > #else >
Isn't this currently a no-op, as all platforms that have timespec_get (namely: glibc, FreeBSD, NetBSD, OpenBSD, macOS, Solaris 11) also have clock_gettime? Would it make sense to prefer timespec_get over clock_gettime on some platforms? Bruno