]> granicus.if.org Git - sudo/commitdiff
Include time.h for struct timeval
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 21 Jul 2010 20:01:16 +0000 (16:01 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 21 Jul 2010 20:01:16 +0000 (16:01 -0400)
compat/mkstemps.c
plugins/sudoers/boottime.c

index 96e2986b798781f0c457a3781849886b6672d5e3..1bd3c781934c8f6ce78dc685a6ec0d425becda20 100644 (file)
@@ -18,7 +18,9 @@
 #include <config.h>
 
 #include <sys/types.h>
+#include <sys/time.h>
 #include <sys/stat.h>
+
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
@@ -30,6 +32,9 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif /* HAVE_UNISTD_H */
+#if TIME_WITH_SYS_TIME
+# include <time.h>
+#endif
 
 #include <compat.h>
 
index 5548738ea5069b102037a2d21e516ce1009bb436..237bd8ea5446697b79badaa624cc8be681f03783 100644 (file)
@@ -17,8 +17,8 @@
 #include <config.h>
 
 #include <sys/param.h>
-#include <sys/time.h>
 #include <sys/types.h>
+#include <sys/time.h>
 
 #include <stdio.h>
 #ifdef STDC_HEADERS