From: brarcher Date: Wed, 25 Dec 2013 03:04:10 +0000 (+0000) Subject: libcompat.h: include sys/time.h only if it is available X-Git-Tag: 0.10.0~281 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8680aa5e878c5455caee4b865228e4fecd1609da;p=check 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 --- 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,