From 8b179749d832d7ff24df150afb7f5ff50bcb4d15 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 25 Feb 2002 04:47:39 +0000 Subject: [PATCH] #include instead of depending on namespace pollution in 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. --- usr.bin/at/at.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 5d4b642c38e3..371ef4d7a164 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -33,15 +33,21 @@ __FBSDID("$FreeBSD$"); /* System Headers */ -#include -#include -#include #include +#include +#include +#include #include #include #include #include #include +#ifndef __FreeBSD__ +#include +#endif +#ifdef __FreeBSD__ +#include +#endif #include #include #include @@ -51,11 +57,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#ifndef __FreeBSD__ -#include -#else -#include -#endif #if (MAXLOGNAME-1) > UT_NAMESIZE #define LOGNAMESIZE UT_NAMESIZE