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~640 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46230280c84f13a33b50f794793b5b206af214d9;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/gettime.c b/gettime.c index 5981fc7c8..e4d7c64bf 100644 --- a/gettime.c +++ b/gettime.c @@ -14,14 +14,18 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include + #include #include #include #if TIME_WITH_SYS_TIME # include #endif +#ifndef HAVE_TIMESPEC +# include +#endif -#include #include #ifndef lint