summaryrefslogtreecommitdiff
path: root/lib/readutmp.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-04 08:44:28 +0000
committerJim Meyering <jim@meyering.net>2000-07-04 08:44:28 +0000
commit1358f7c4a837580a854d785ba4805068cf2edfd3 (patch)
treeb8fb31fe7ab8c1209ff0abacfacf6881be0fd9cf /lib/readutmp.h
parent93262c2f7fb498bb953017096474691fa06db974 (diff)
downloadcoreutils-1358f7c4a837580a854d785ba4805068cf2edfd3.tar.xz
[HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20. From Bob Proulx.
Diffstat (limited to 'lib/readutmp.h')
-rw-r--r--lib/readutmp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/readutmp.h b/lib/readutmp.h
index 5a08fdab4..6f512fad6 100644
--- a/lib/readutmp.h
+++ b/lib/readutmp.h
@@ -31,6 +31,10 @@
# include <sys/types.h>
# ifdef HAVE_UTMPX_H
+# ifdef HAVE_UTMP_H
+ /* HPUX 10.20 needs utmp.h, for the definition of e.g., UTMP_FILE. */
+# include <utmp.h>
+# endif
# include <utmpx.h>
# define UTMP_STRUCT_NAME utmpx
# define UT_TIME_MEMBER(UT_PTR) ((UT_PTR)->ut_tv.tv_sec)