changeset 2696:bec8bcc12a26

[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.
author Jim Meyering <jim@meyering.net>
date Tue, 04 Jul 2000 08:44:28 +0000
parents a809dae5d3f1
children 2c0ec706e9ff
files lib/readutmp.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)