From: Mark Wielaard Date: Fri, 1 Apr 2022 15:28:24 +0000 (+0200) Subject: configure.ac: AC_HEADER_TIME is deprecated just check for sys/time.h X-Git-Tag: VALGRIND_3_19_0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff84a3542ec6d2d1b0b2e5ec94b1b0f506db0043;p=thirdparty%2Fvalgrind.git configure.ac: AC_HEADER_TIME is deprecated just check for sys/time.h AC_HEADER_TIME is deprecated and checks for various things, like whether you can include both time.h and sys/time.h together. Which is fine on all systems these days. Just check whether sys/time.h is available. HAVE_SYS_TIME_H is used once in the code base in the timerfd-syscall.c testcase. So even this limited check might be overkill. --- diff --git a/configure.ac b/configure.ac index 56a1d7e766..4107f2d07d 100755 --- a/configure.ac +++ b/configure.ac @@ -4683,7 +4683,7 @@ CFLAGS="$save_CFLAGS" AC_TYPE_UID_T AC_TYPE_OFF_T AC_TYPE_SIZE_T -AC_HEADER_TIME +AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CHECK_TYPE([struct statx], [ AC_DEFINE([HAVE_STRUCT_STATX_IN_SYS_STAT_H], 1,