From: Bruno Haible Date: Tue, 8 Aug 2023 15:17:42 +0000 (+0200) Subject: readutmp: Fix compilation error on OpenBSD and AIX (regr. 2023-08-03). X-Git-Tag: v1.0~953 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=6248921107b1663571faf6a003300e9baea35e4f;p=gnulib.git readutmp: Fix compilation error on OpenBSD and AIX (regr. 2023-08-03). * lib/readutmp.h (UT_TIME_MEMBER) [HAVE_UTMP_H]: Revert last change. --- diff --git a/ChangeLog b/ChangeLog index 21886433f9..b655ce185d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-08-08 Bruno Haible + + readutmp: Fix compilation error on OpenBSD and AIX (regr. 2023-08-03). + * lib/readutmp.h (UT_TIME_MEMBER) [HAVE_UTMP_H]: Revert last change. + 2023-08-08 Bruno Haible readutmp: Fix compilation error on OpenBSD (regr. 2023-08-02). diff --git a/lib/readutmp.h b/lib/readutmp.h index 9f53246597..043ae6df16 100644 --- a/lib/readutmp.h +++ b/lib/readutmp.h @@ -155,7 +155,7 @@ struct gl_utmp struct utmp *getutent (void); # endif # define UTMP_STRUCT_NAME utmp -# define UT_TIME_MEMBER(UT) ((UT)->ut_ts.tv_sec) +# define UT_TIME_MEMBER(UT) ((UT)->ut_time) # define SET_UTMP_ENT setutent # define GET_UTMP_ENT getutent # define END_UTMP_ENT endutent