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