Paul Eggert wrote:

On 12/30/21 07:48, Gisle Vanem wrote:
-#elif defined HAVE_TIMESPEC_GETRES
+#elif defined HAVE_TIMESPEC_GETRES && HAVE_TIMESPEC_GETRES

This change has an effect only if there's the equivalent of '#define HAVE_TIMESPEC_GETRES 0' somewhere.

Since 'time.in.h' says:
  #  if ! @HAVE_TIMESPEC_GETRES@
  _GL_FUNCDECL_SYS (timespec_getres, int, (struct timespec *ts, int base)
..

it makes sense to me this should be replaced with a '0' or '1'.
Or you mean it should be replaced with
  defined HAVE_TIMESPEC_GETRES ?

But I fail to understand how the value of 'HAVE_TIMESPEC_GETRES'
is used by m4 etc.

--
--gv

Reply via email to