]> granicus.if.org Git - sudo/commitdiff
Use TIME_WITH_SYS_TIME
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 3 Dec 2004 18:52:28 +0000 (18:52 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 3 Dec 2004 18:52:28 +0000 (18:52 +0000)
fileops.c
gettime.c
sudo.c
sudo_edit.c
utimes.c
visudo.c

index abd487358f000d2daf0071855ad14ba8965d2eb8..7f7bc2d49a71823fa2810673c54e52364aa9b830 100644 (file)
--- a/fileops.c
+++ b/fileops.c
@@ -31,7 +31,9 @@
 # include <unistd.h>
 #endif /* HAVE_UNISTD_H */
 #include <fcntl.h>
-#include <time.h>
+#if TIME_WITH_SYS_TIME
+# include <time.h>
+#endif
 
 #include "sudo.h"
 
index cdc0a46ac567d5e7da12b0eb076cce689c10b950..3ec982f194f32cc81d9bd0ff441fac80a1ab3eed 100644 (file)
--- a/gettime.c
+++ b/gettime.c
 
 #include <sys/types.h>
 #include <sys/time.h>
-#include <time.h>
 #include <stdio.h>
+#if TIME_WITH_SYS_TIME
+# include <time.h>
+#endif
 
 #include <config.h>
 #include <compat.h>
diff --git a/sudo.c b/sudo.c
index 625f9f1462f2205589f3ac5b0c5d3b2bc60078cc..126c1e62bf5cf08e1f9c605eb7c829bdb80b157f 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -64,7 +64,9 @@
 #include <fcntl.h>
 #include <signal.h>
 #include <grp.h>
-#include <time.h>
+#if TIME_WITH_SYS_TIME
+# include <time.h>
+#endif
 #include <netinet/in.h>
 #include <netdb.h>
 #if defined(HAVE_GETPRPWNAM) && defined(HAVE_SET_AUTH_PARAMETERS)
index f60c115297b9d7bcbbabd4d4b855868ceb8a775e..d96233650566e81a6399b7f6aa20def04ffc0bd3 100644 (file)
@@ -46,7 +46,9 @@
 #include <signal.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <time.h>
+#if TIME_WITH_SYS_TIME
+# include <time.h>
+#endif
 
 #include "sudo.h"
 
index 9ba51f137b12ebec4c95370b43847ccd5bb434fe..c0016456e6eb52a89ba44799e99c6c0d6c8f432e 100644 (file)
--- a/utimes.c
+++ b/utimes.c
 
 #include <sys/types.h>
 #include <sys/time.h>
-#include <time.h>
 #include <stdio.h>
+#if TIME_WITH_SYS_TIME
+# include <time.h>
+#endif
 
 #include <config.h>
 
index 6795909265deb3054c7e4c75886bd9b4de1533bb..58cc1fab4d2005c90871a99cc07205253ee8195e 100644 (file)
--- a/visudo.c
+++ b/visudo.c
 #include <ctype.h>
 #include <pwd.h>
 #include <grp.h>
-#include <time.h>
 #include <signal.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
+#if TIME_WITH_SYS_TIME
+# include <time.h>
+#endif
 #ifdef __STDC__
 # include <stdarg.h>
 #else