From 62df20656565cd422330ae2b2aebf61c67cbaf22 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 23 Jul 2000 19:20:18 +0000 Subject: * configure.in (AC_CHECK_HEADERS): Add time.h. (AC_HEADER_TIME): Add check. * configure, config.in: Regenerate. * getruntime.c: Portably #include and/or . --- libiberty/getruntime.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'libiberty/getruntime.c') diff --git a/libiberty/getruntime.c b/libiberty/getruntime.c index b855ea6..4abfa83 100644 --- a/libiberty/getruntime.c +++ b/libiberty/getruntime.c @@ -26,10 +26,20 @@ Boston, MA 02111-1307, USA. */ single way is available for all host systems, nor are there reliable ways to find out which way is correct for a given host. */ -#include +#ifdef TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# ifdef HAVE_TIME_H +# include +# endif +# endif +#endif #if defined (HAVE_GETRUSAGE) && defined (HAVE_SYS_RESOURCE_H) -#include #include #endif -- cgit v1.1