summaryrefslogtreecommitdiffstats
path: root/usr.bin/at
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-25 04:47:39 +0000
committerbde <bde@FreeBSD.org>2002-02-25 04:47:39 +0000
commit2015121debca13fc511923819aaf15a1c93c3d4c (patch)
tree925c74017884df2784f042b9c4bea9ed14094a29 /usr.bin/at
parent1d63dbb1d3cc62338c26c5d3982c5725d6aa96e0 (diff)
downloadFreeBSD-src-2015121debca13fc511923819aaf15a1c93c3d4c.zip
FreeBSD-src-2015121debca13fc511923819aaf15a1c93c3d4c.tar.gz
#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for the declaration of struct timeval (sys/stat.h> only needs timespecs even when its POSIX support is not turned on, so it shouldn't declare timevals). Fixed some #include messes.
Diffstat (limited to 'usr.bin/at')
-rw-r--r--usr.bin/at/at.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index 5d4b642..371ef4d 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -33,15 +33,21 @@ __FBSDID("$FreeBSD$");
/* System Headers */
-#include <sys/types.h>
+#include <sys/param.h>
#include <sys/stat.h>
+#include <sys/time.h>
#include <sys/wait.h>
-#include <sys/param.h>
#include <ctype.h>
#include <dirent.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
+#ifndef __FreeBSD__
+#include <getopt.h>
+#endif
+#ifdef __FreeBSD__
+#include <locale.h>
+#endif
#include <pwd.h>
#include <signal.h>
#include <stddef.h>
@@ -51,11 +57,6 @@ __FBSDID("$FreeBSD$");
#include <time.h>
#include <unistd.h>
#include <utmp.h>
-#ifndef __FreeBSD__
-#include <getopt.h>
-#else
-#include <locale.h>
-#endif
#if (MAXLOGNAME-1) > UT_NAMESIZE
#define LOGNAMESIZE UT_NAMESIZE
OpenPOWER on IntegriCloud