From: Todd C. Miller Date: Thu, 23 Jun 2005 03:04:35 +0000 (+0000) Subject: Move declatation of struct timespec to its own include files for X-Git-Tag: SUDO_1_7_0~643 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bb5c181b0152942c78043458b8e3e05bf0ca63c;p=sudo Move declatation of struct timespec to its own include files for systems without it since it needs time_t defined. --- diff --git a/check.c b/check.c index 04d60cd53..3fb306181 100644 --- a/check.c +++ b/check.c @@ -51,6 +51,9 @@ #include #include #include +#ifndef HAVE_TIMESPEC +# include +#endif #include "sudo.h" diff --git a/compat.h b/compat.h index e430e274e..d7a45cbd3 100644 --- a/compat.h +++ b/compat.h @@ -255,13 +255,6 @@ const char *getprogname __P((void)); #endif /* HAVE___PROGNAME */ #endif /* !HAVE_GETPROGNAME */ -#ifndef HAVE_TIMESPEC -struct timespec { - time_t tv_sec; - long tv_nsec; -}; -#endif /* !HAVE_TIMESPEC */ - #ifndef timespecclear # define timespecclear(ts) (ts)->tv_sec = (ts)->tv_nsec = 0 #endif