]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
configure.ac: AC_HEADER_TIME is deprecated just check for sys/time.h
authorMark Wielaard <mark@klomp.org>
Fri, 1 Apr 2022 15:28:24 +0000 (17:28 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 1 Apr 2022 15:28:24 +0000 (17:28 +0200)
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.

configure.ac

index 56a1d7e766fcf2add18bb56732a2ef197c071cbf..4107f2d07d14ccf6113b6211dde8c1cc7c1240d9 100755 (executable)
@@ -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,