From 3bb5c181b0152942c78043458b8e3e05bf0ca63c 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. --- check.c | 3 +++ compat.h | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) 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 -- 2.50.1