]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
readutmp: Remove support for OSF/1.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:45:45 +0000 (12:45 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:45:52 +0000 (12:45 +0200)
* m4/readutmp.m4 (gl_PREREQ_READUTMP_H): Don't test for ut_termination,
ut_exit members.
* lib/readutmp.c (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Don't access
ut_termination, ut_exit members.

ChangeLog
lib/readutmp.c
m4/readutmp.m4

index e01ecffe91a1683054ac2d3e62d8e60f2cb89aa3..53561a0d1ede48e62a6003d3e81fea02bd1924f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2025-09-09  Bruno Haible  <bruno@clisp.org>
 
+       readutmp: Remove support for OSF/1.
+       * m4/readutmp.m4 (gl_PREREQ_READUTMP_H): Don't test for ut_termination,
+       ut_exit members.
+       * lib/readutmp.c (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Don't access
+       ut_termination, ut_exit members.
+
        random_r: Remove support for OSF/1.
        * lib/stdlib.in.h: Don't include <random.h>.
        * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Don't initialize HAVE_RANDOM_H.
index 9366dfa5c28358aa1f4c20c46f7f7d8e6b18bdb1..a34d5fde5f034d08f39b892b23f50eefde2763e7 100644 (file)
 #if HAVE_UTMPX_H
 # if HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION
 #  define UT_EXIT_E_TERMINATION(UT) ((UT)->ut_exit.e_termination)
-# elif HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION /* OSF/1 */
-#  define UT_EXIT_E_TERMINATION(UT) ((UT)->ut_exit.ut_termination)
 # else
 #  define UT_EXIT_E_TERMINATION(UT) 0
 # endif
 #if HAVE_UTMPX_H
 # if HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT
 #  define UT_EXIT_E_EXIT(UT) ((UT)->ut_exit.e_exit)
-# elif HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT /* OSF/1 */
-#  define UT_EXIT_E_EXIT(UT) ((UT)->ut_exit.ut_exit)
 # else
 #  define UT_EXIT_E_EXIT(UT) 0
 # endif
index 36c95be33739dd6de7316d215315196193da29a0..418c398b2494d4551d5414f2f111d8ec8a614b86 100644 (file)
@@ -1,5 +1,5 @@
 # readutmp.m4
-# serial 31
+# serial 32
 dnl Copyright (C) 2002-2025 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -96,11 +96,9 @@ AC_INCLUDES_DEFAULT
     AC_CHECK_MEMBERS([struct utmpx.ut_exit],,,[$utmp_includes])
     AC_CHECK_MEMBERS([struct utmp.ut_exit],,,[$utmp_includes])
 
-    AC_CHECK_MEMBERS([struct utmpx.ut_exit.ut_exit],,,[$utmp_includes])
     AC_CHECK_MEMBERS([struct utmpx.ut_exit.e_exit],,,[$utmp_includes])
     AC_CHECK_MEMBERS([struct utmp.ut_exit.e_exit],,,[$utmp_includes])
 
-    AC_CHECK_MEMBERS([struct utmpx.ut_exit.ut_termination],,,[$utmp_includes])
     AC_CHECK_MEMBERS([struct utmpx.ut_exit.e_termination],,,[$utmp_includes])
     AC_CHECK_MEMBERS([struct utmp.ut_exit.e_termination],,,[$utmp_includes])
   fi