From 8680aa5e878c5455caee4b865228e4fecd1609da Mon Sep 17 00:00:00 2001 From: brarcher Date: Wed, 25 Dec 2013 03:04:10 +0000 Subject: [PATCH] libcompat.h: include sys/time.h only if it is available git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@935 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- lib/libcompat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libcompat.h b/lib/libcompat.h index 55034dc..2537555 100644 --- a/lib/libcompat.h +++ b/lib/libcompat.h @@ -44,7 +44,9 @@ #include /* provides localtime and struct tm */ +#ifdef HAVE_SYS_TIME_H #include +#endif /* !HAVE_SYS_TIME_H */ #include /* declares fork(), _POSIX_VERSION. according to Autoconf.info, -- 2.40.0