From a90a6c3e56c150f4fdc5afe13c1d5e61181823fe Mon Sep 17 00:00:00 2001
From: Andre Maroneze <andre.maroneze@cea.fr>
Date: Wed, 11 Sep 2024 18:48:40 +0200
Subject: [PATCH] [libc] minor change to help coreutils parsing

---
 share/libc/uchar.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/share/libc/uchar.h b/share/libc/uchar.h
index c24d5ebc42..bdd279f4d0 100644
--- a/share/libc/uchar.h
+++ b/share/libc/uchar.h
@@ -43,6 +43,13 @@ typedef __UINT_LEAST16_T char16_t;
 typedef __UINT_LEAST16_T char32_t;
 #endif
 
+/* POSIX 2024: "Inclusion of the <uchar.h> header may make visible all symbols
+   from the headers <stddef.h>, <stdint.h>, and <wchar.h>.
+   Note: coreutils needs this: it uses wint_t without including wchar.h. */
+#include <stddef.h>
+#include <stdint.h>
+#include <wchar.h>
+
 /* C23 7.30.1 "...If ps is a null pointer, each function uses its own
    internal mbstate_t object..."
 */
-- 
GitLab