From 46230280c84f13a33b50f794793b5b206af214d9 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 23 Jun 2005 03:04:35 +0000 Subject: [PATCH] Move declatation of struct timespec to its own include files for systems without it since it needs time_t defined. --- gettime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.50.1