From 2566e6b7d8704c86a970fca0202fd3bc617afec4 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. --- sudo_edit.c | 3 +++ visudo.c | 3 +++ 2 files changed, 6 insertions(+) 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" -- 2.50.1