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~639 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2566e6b7d8704c86a970fca0202fd3bc617afec4;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/sudo_edit.c b/sudo_edit.c index 6de012bde..f0827c598 100644 --- a/sudo_edit.c +++ b/sudo_edit.c @@ -49,6 +49,9 @@ #if TIME_WITH_SYS_TIME # include #endif +#ifndef HAVE_TIMESPEC +# include +#endif #include "sudo.h" diff --git a/visudo.c b/visudo.c index 662b604b9..7f1f014cc 100644 --- a/visudo.c +++ b/visudo.c @@ -75,6 +75,9 @@ #else # include #endif +#ifndef HAVE_TIMESPEC +# include +#endif #include "sudo.h" #include "interfaces.h"