summaryrefslogtreecommitdiffstats
path: root/lib/libutil/logwtmp.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-25 12:02:03 +0000
committerbde <bde@FreeBSD.org>2002-02-25 12:02:03 +0000
commite89f04538eb55767c3ba4f56041ad95e69258ead (patch)
tree66bdafd8e5879884ca62b5ebab3eb50a379bf2bc /lib/libutil/logwtmp.c
parent71f587d69f01648422893fb795d29b5f9833db3e (diff)
downloadFreeBSD-src-e89f04538eb55767c3ba4f56041ad95e69258ead.zip
FreeBSD-src-e89f04538eb55767c3ba4f56041ad95e69258ead.tar.gz
#include <time.h> for the definition of time functions instead of
depending on namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes.
Diffstat (limited to 'lib/libutil/logwtmp.c')
-rw-r--r--lib/libutil/logwtmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libutil/logwtmp.c b/lib/libutil/logwtmp.c
index 9f12870..ac407ea 100644
--- a/lib/libutil/logwtmp.c
+++ b/lib/libutil/logwtmp.c
@@ -41,14 +41,15 @@ static char sccsid[] = "@(#)logwtmp.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
-#include <sys/socket.h>
#include <sys/file.h>
+#include <sys/socket.h>
#include <sys/stat.h>
#include <libutil.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#include <utmp.h>
OpenPOWER on IntegriCloud