From 2a932cbb9376cb2a5270bea5fcbbf94167ef6394 Mon Sep 17 00:00:00 2001 From: Dave Beckett Date: Sun, 10 Oct 2021 00:08:02 -0700 Subject: Fix headers after removal of AC_HEADER_TIME --- configure.ac | 2 +- src/parsedate.y | 6 ++++-- src/raptor_internal.h | 14 +++++--------- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index 45f9c885..fa7b1f47 100644 --- a/configure.ac +++ b/configure.ac @@ -325,7 +325,7 @@ CPPFLAGS="$extra_compiler_cflags $CPPFLAGS" dnl Checks for header files. -AC_CHECK_HEADERS(errno.h fcntl.h getopt.h limits.h setjmp.h stddef.h stdlib.h strings.h string.h sys/param.h sys/stat.h sys/time.h unistd.h) +AC_CHECK_HEADERS(errno.h fcntl.h getopt.h limits.h setjmp.h stddef.h stdlib.h strings.h string.h sys/param.h sys/stat.h sys/time.h time.h unistd.h) AC_CHECK_FUNCS(stat) dnl FreeBSD fetch.h needs stdio.h and sys/param.h first AC_CHECK_HEADERS(fetch.h,,, diff --git a/src/parsedate.y b/src/parsedate.y index a0ff6e82..437cdf50 100644 --- a/src/parsedate.y +++ b/src/parsedate.y @@ -29,11 +29,13 @@ #include #include -#include #include #ifdef HAVE_SYS_TIME_H -# include +#include +#endif +#ifdef TIME_H +#include #endif #ifdef HAVE_STDLIB_H diff --git a/src/raptor_internal.h b/src/raptor_internal.h index 3767c66a..2ea00734 100644 --- a/src/raptor_internal.h +++ b/src/raptor_internal.h @@ -1226,15 +1226,11 @@ struct raptor_uri_detail_s /* for time_t */ -#ifdef TIME_WITH_SYS_TIME -# include -# include -#else -# ifdef HAVE_SYS_TIME_H -# include -# else -# include -# endif +#ifdef SYS_TIME_H +#include +#endif +#ifdef TIME_H +#include #endif /* parsedate.c */ -- cgit v1.2.1