]> 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.

fileops.c

index c373561f5f2425d6fd68eb3cc5d46ea1b0ec6870..cb1399e23c5ebcc9dda1ce09eeab1e53da76bcb5 100644 (file)
--- a/fileops.c
+++ b/fileops.c
@@ -34,6 +34,9 @@
 #if TIME_WITH_SYS_TIME
 # include <time.h>
 #endif
+#ifndef HAVE_TIMESPEC
+# include <emul/timespec.h>
+#endif
 
 #include "sudo.h"