summaryrefslogtreecommitdiff
path: root/lib/readutmp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-04-05 15:00:11 +0000
committerJim Meyering <jim@meyering.net>2000-04-05 15:00:11 +0000
commitff9b9b202cb23ec65c89cdd2ccf32cb27b183a7f (patch)
treecf9594a4ac69039f5699b6e1b5031226523a1cf4 /lib/readutmp.c
parent594b06988b3627d992d8d468e13f4db5cf61a7dd (diff)
downloadcoreutils-ff9b9b202cb23ec65c89cdd2ccf32cb27b183a7f.tar.xz
Include sys/types.h before sys/stat.h.
Required for ultrix4.3.
Diffstat (limited to 'lib/readutmp.c')
-rw-r--r--lib/readutmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/readutmp.c b/lib/readutmp.c
index e14408add..29b24a550 100644
--- a/lib/readutmp.c
+++ b/lib/readutmp.c
@@ -21,6 +21,7 @@
#include <stdio.h>
+#include <sys/types.h>
#include <sys/stat.h>
#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
# include <string.h>
@@ -129,4 +130,4 @@ read_utmp (const char *filename, int *n_entries, STRUCT_UTMP **utmp_buf)
return 0;
}
-#endif /* HAVE_UTMPNAME */
+#endif