[HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
authorJim Meyering <jim@meyering.net>
Tue, 4 Jul 2000 08:44:28 +0000 (08:44 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 4 Jul 2000 08:44:28 +0000 (08:44 +0000)
This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
From Bob Proulx.

lib/readutmp.h

index 5a08fda..6f512fa 100644 (file)
 # 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)