From 1b96f6a9b3bcfed802105a3976519d14a3e19180 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 30 Dec 2021 16:12:15 +0100 Subject: [PATCH] Remove AC_HEADER_TIME and TIME_WITH_SYS_TIME checks Systems on which conflicted with are obsolete. This macro has been marked as obsolete by autoconf documentation. Signed-off-by: Alejandro Colomar --- configure.ac | 1 - lib/defines.h | 12 ++---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index e9794010..50ce7d85 100644 --- a/configure.ac +++ b/configure.ac @@ -60,7 +60,6 @@ AC_CHECK_MEMBERS([struct stat.st_atim]) AC_CHECK_MEMBERS([struct stat.st_atimensec]) AC_CHECK_MEMBERS([struct stat.st_mtim]) AC_CHECK_MEMBERS([struct stat.st_mtimensec]) -AC_HEADER_TIME AC_STRUCT_TM AC_CHECK_MEMBERS([struct utmp.ut_type, diff --git a/lib/defines.h b/lib/defines.h index 16642e7a..55b42bee 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -82,16 +82,8 @@ extern char * textdomain (const char * domainname); # include #endif -#if TIME_WITH_SYS_TIME -# include -# include -#else /* not TIME_WITH_SYS_TIME */ -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif /* not TIME_WITH_SYS_TIME */ +#include +#include #ifdef HAVE_MEMSET_S # define memzero(ptr, size) memset_s((ptr), 0, (size))