aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2002-02-25 12:02:03 +0000
committerBruce Evans <bde@FreeBSD.org>2002-02-25 12:02:03 +0000
commit3798cf8a706303334c0aa72fbc363137c08cdf8b (patch)
tree66bdafd8e5879884ca62b5ebab3eb50a379bf2bc /lib/libutil
parent7e43947c99186698e3e5e40fa9027c72ffb5da5c (diff)
downloadsrc-3798cf8a706303334c0aa72fbc363137c08cdf8b.tar.gz
src-3798cf8a706303334c0aa72fbc363137c08cdf8b.zip
#include <time.h> for the definition of time functions instead of
depending on namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes.
Notes
Notes: svn path=/head/; revision=91241
Diffstat (limited to 'lib/libutil')
-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 9f12870f8803..ac407ea4db18 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>