From: Jim Meyering Date: Tue, 4 Jul 2000 08:44:28 +0000 (+0000) Subject: [HAVE_UTMPX_H]: Include if HAVE_UTMP_H. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=206968ccb883ef2c2b5c0cbad87bed8734cd8d6a;p=pspp [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. --- 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)