]> granicus.if.org Git - sudo/commitdiff
Include time.h for struct timeval.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 21 Jul 2010 20:00:26 +0000 (16:00 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 21 Jul 2010 20:00:26 +0000 (16:00 -0400)
--HG--
branch : 1.7

boottime.c
mkstemps.c

index ef7f1f03136ad97f2becda026581b6512c9bc465..37c83158d0b987015df3f64f3934516b4a50d2fe 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
index a46b01722ef9c8a1327c08b8333af9b1aa41768c..7245f1972d2d9b7e9b57f9a5f86f25f4f20bae42 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 "sudo.h"