]> granicus.if.org Git - sudo/commitdiff
Move declatation of struct timespec to its own include files for
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Jun 2005 03:04:35 +0000 (03:04 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Jun 2005 03:04:35 +0000 (03:04 +0000)
systems without it since it needs time_t defined.

sudo_edit.c
visudo.c

index 6de012bdeba75cffa5a133c8268f2016c1a036ef..f0827c598bd331ea7cdfe6cf6126e14157a8df42 100644 (file)
@@ -49,6 +49,9 @@
 #if TIME_WITH_SYS_TIME
 # include <time.h>
 #endif
+#ifndef HAVE_TIMESPEC
+# include <emul/timespec.h>
+#endif
 
 #include "sudo.h"
 
index 662b604b9761a8660b805fc80fe58b108eb7f842..7f1f014cc4b1f58dca2cf2ac6a3f58d68afd20f6 100644 (file)
--- a/visudo.c
+++ b/visudo.c
@@ -75,6 +75,9 @@
 #else
 # include <varargs.h>
 #endif
+#ifndef HAVE_TIMESPEC
+# include <emul/timespec.h>
+#endif
 
 #include "sudo.h"
 #include "interfaces.h"