|
From: Mark W. <ma...@so...> - 2022-04-01 15:33:39
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=ff84a3542ec6d2d1b0b2e5ec94b1b0f506db0043 commit ff84a3542ec6d2d1b0b2e5ec94b1b0f506db0043 Author: Mark Wielaard <ma...@kl...> Date: Fri Apr 1 17:28:24 2022 +0200 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: --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, |