On Tue, 2019-09-03 at 10:27 -0400, Dmitry Goncharov wrote:
> /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
> /* #undef TIME_WITH_SYS_TIME */

This is the reason for your problem.  On my system, this is defined.

What version of GNU/Linux are you using?

What this undefined value means is that as far as autoconf is
concerned, it's not valid to include both <sys/time.h> and <time.h> at
the same time on the same system.  In this situation, if
HAVE_SYS_TIME_H is defined (which it is for you) then <sys/time.h> will
be included but not <time.h>.

The fact that you can add an include of <time.h> into file.c and have
it not fail shows that in fact, it IS OK to have both these headers
included at the same time, which means that the configure check got it
wrong.

Can you email me (privately please, not to the entire list) your
config.log file, or go through it to find the errors that were
generated when configure attempted to determine whether both these
headers can be included?

Thanks!


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make
  • gmake-4.2.90 ... Dmitry Goncharov via Bug reports and discussion for GNU make
    • Re: gmak... Paul Smith
      • Re: ... Dmitry Goncharov via Bug reports and discussion for GNU make
        • ... Paul Smith

Reply via email to