Warning about TIME_WITH_SYS_TIME during Windows mingw64 compile
A warning seen during "make" in Windows 64-bit, Msys2, MinGW64 is:
auxlib.c:29:5: warning: "TIME_WITH_SYS_TIME" is not defined, evaluates to 0 [-Wundef]
#if TIME_WITH_SYS_TIME
^~~~~~~~~~~~~~~~~~
My environment does have both time.h and sys/time.h.
However the macro TIME_WITH_SYS_TIME was not getting defined due to the removal of the AC_HEADER_TIME option in configure.ac.
AC_HEADER_TIME is not compatible with autoconf 2.70 and newer, so its removal is understandable.
Since configure.ac already checks for sys/time.h, no further change is needed there:
AC_CHECK_HEADERS([math.h limits.h malloc.h strings.h sys/time.h unistd.h io.h signal.h fcntl.h])
In the 3 files: auxlib.c, random.c, and bench_mulredc.c
Replacing this:
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
With this:
#if HAVE_SYS_TIME_H
# include <sys/time.h>
#else
# include <time.h>
#endif
Fixed the warning messages in my environment.