Reported by Pádraig Brady in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-08/msg00110.html>.
* lib/readutmp.c: Don't include <sys/sysctl.h> on glibc/Linux.
* lib/boot-time.c: Likewise.
+2023-08-13 Bruno Haible <bruno@clisp.org>
+
+ readutmp, boot-time: Fix warning on glibc 2.30..2.31 on Linux.
+ Reported by Pádraig Brady in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2023-08/msg00110.html>.
+ * lib/readutmp.c: Don't include <sys/sysctl.h> on glibc/Linux.
+ * lib/boot-time.c: Likewise.
+
2023-08-13 Paul Eggert <eggert@cs.ucla.edu>
fts: improve memory-allocation errno handling
# include <time.h>
#endif
-#if HAVE_SYS_SYSCTL_H && !defined __minix
+#if HAVE_SYS_SYSCTL_H && !(defined __GLIBC__ && defined __linux__) && !defined __minix
# if HAVE_SYS_PARAM_H
# include <sys/param.h>
# endif
# include <systemd/sd-login.h>
#endif
-#if HAVE_SYS_SYSCTL_H && !defined __minix
+#if HAVE_SYS_SYSCTL_H && !(defined __GLIBC__ && defined __linux__) && !defined __minix
# if HAVE_SYS_PARAM_H
# include <sys/param.h>
# endif