From f71cfa9db1a196f0fadb2090ac04ce3164e171d3 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 16 Mar 2025 12:48:46 -0700
Subject: [PATCH] Add fix for packages that are not compatible with C23

Fixes builds with GCC-15
Sourced from Fedora: https://src.fedoraproject.org/rpms/readline/c/c47eb813afb942128253213ad5b8221770557e48?branch=rawhide

Help getting packages like bluez5 building

Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-readline/2025-03/msg00001.html]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 readline/readline/rlstdc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/readline/readline/rlstdc.h b/readline/readline/rlstdc.h
index 2aaa30babfb..a7a0ef30428 100644
--- a/readline/readline/rlstdc.h
+++ b/readline/readline/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
