From 206968ccb883ef2c2b5c0cbad87bed8734cd8d6a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 4 Jul 2000 08:44:28 +0000 Subject: [PATCH] [HAVE_UTMPX_H]: Include if HAVE_UTMP_H. This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20. From Bob Proulx. --- lib/readutmp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/readutmp.h b/lib/readutmp.h index 5a08fdab41..6f512fad64 100644 --- a/lib/readutmp.h +++ b/lib/readutmp.h @@ -31,6 +31,10 @@ # include # ifdef HAVE_UTMPX_H +# ifdef HAVE_UTMP_H + /* HPUX 10.20 needs utmp.h, for the definition of e.g., UTMP_FILE. */ +# include +# endif # include # define UTMP_STRUCT_NAME utmpx # define UT_TIME_MEMBER(UT_PTR) ((UT_PTR)->ut_tv.tv_sec) -- 2.30.2