]> Savannah Git Hosting - gnulib.git/commitdiff
readutmp: Fix compilation error on OpenBSD and AIX (regr. 2023-08-03).
authorBruno Haible <bruno@clisp.org>
Tue, 8 Aug 2023 15:17:42 +0000 (17:17 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 8 Aug 2023 15:23:54 +0000 (17:23 +0200)
* lib/readutmp.h (UT_TIME_MEMBER) [HAVE_UTMP_H]: Revert last change.

ChangeLog
lib/readutmp.h

index 21886433f9f7a85e15e63cbd70377907d8089ee0..b655ce185d7a0975ed132141c74203cf6e692f42 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-08-08  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        readutmp: Fix compilation error on OpenBSD (regr. 2023-08-02).
index 9f532465970777af8ff8e54366380170756b4e62..043ae6df16b72f77b3bd3811e185db7cf2504f6b 100644 (file)
@@ -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