Files
gentoo/sys-libs/readline/files/readline-8.2-c23.patch
Sam James 88e2cf30bf sys-libs/readline: add (later) upstream reference for C23 patch
It got reported a while after our one (I didn't bother given 8.3
was fixed). See https://lists.gnu.org/archive/html/bug-readline/2025-03/msg00000.html.

Signed-off-by: Sam James <sam@gentoo.org>
2025-03-25 09:41:49 +00:00

22 lines
736 B
Diff

HAVE_STDARG_H isn't defined for readline consumers externally so we always
end up using the ancient non-prototypes. Fix that as all compilers we care
about since forever in Gentoo will support this path.
This in particular shows up with rl_message in consumers:
https://bugs.gentoo.org/943820
https://bugs.gentoo.org/944059
https://bugs.gentoo.org/944300
https://bugs.gentoo.org/944344
[later: https://lists.gnu.org/archive/html/bug-readline/2025-03/msg00000.html]
--- a/rlstdc.h
+++ b/rlstdc.h
@@ -44,7 +44,7 @@
/* Moved from config.h.in because readline.h:rl_message depends on these
defines. */
-#if defined (__STDC__) && defined (HAVE_STDARG_H)
+#if defined (__STDC__)
# define PREFER_STDARG
# define USE_VARARGS
#else