* lib/stdlib.in.h: Include <sys/wait.h> also when WCOREDUMP is not
defined.
* doc/posix-headers/stdlib.texi: Document the glibc bug.
+2025-01-13 Bruno Haible <bruno@clisp.org>
+
+ stdlib-h: Define WCOREDUMP, as required by POSIX:2024.
+ * lib/stdlib.in.h: Include <sys/wait.h> also when WCOREDUMP is not
+ defined.
+ * doc/posix-headers/stdlib.texi: Document the glibc bug.
+
2025-01-12 Collin Funk <collin.funk1@gmail.com>
crc: Respect Automake's silent-rules.
@code{WSTOPSIG} are not defined in this header file (only in
@code{<sys/wait.h>}) on some platforms:
MirBSD 10.
+@item
+The macro @code{WCOREDUMP} is not defined in this header file (only in
+@code{<sys/wait.h>}) on some platforms:
+@c https://sourceware.org/bugzilla/show_bug.cgi?id=32551
+glibc 2.40.
@end itemize
Portability problems not fixed by Gnulib:
/* NetBSD 5.0 mis-defines NULL. */
#include <stddef.h>
-/* MirBSD 10 defines WEXITSTATUS in <sys/wait.h>, not in <stdlib.h>. */
-#if @GNULIB_SYSTEM_POSIX@ && !defined WEXITSTATUS
+/* MirBSD 10 defines WEXITSTATUS in <sys/wait.h>, not in <stdlib.h>.
+ glibc 2.40 defines WCOREDUMP in <sys/wait.h>, not in <stdlib.h>. */
+#if @GNULIB_SYSTEM_POSIX@ && !(defined WEXITSTATUS && defined WCOREDUMP)
# include <sys/wait.h>
#endif