From: Todd C. Miller Date: Sun, 6 Feb 2005 04:01:33 +0000 (+0000) Subject: Only include time.h on systems that lack struct timespec which X-Git-Tag: SUDO_1_7_0~721 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cea03b5e8f5b7ef18eeb73a4fe46e6f5301fe427;p=sudo Only include time.h on systems that lack struct timespec which gets defind in compat.h (using time_t). --- diff --git a/sudo_noexec.c b/sudo_noexec.c index 4d676e2cc..4e57ce614 100644 --- a/sudo_noexec.c +++ b/sudo_noexec.c @@ -14,10 +14,13 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include + #include -#include +#ifndef HAVE_TIMESPEC +# include +#endif -#include #include #ifndef lint