From 1e9bf8151513b054f60f34bc89507c31dc242cf0 Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Fri, 7 Feb 2025 10:20:22 +1300 Subject: [PATCH] gmp: Add upstream patch for C23 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a patch from upstream GMP that updates some custom configure checks for C23 compatibility (gnu32 will be the default for GCC 15). Reported-by: Marc Poulhiès Signed-off-by: Chris Packham --- ...lete-function-prototype-in-acinclude.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 packages/gmp/6.3.0/0000-Complete-function-prototype-in-acinclude.patch diff --git a/packages/gmp/6.3.0/0000-Complete-function-prototype-in-acinclude.patch b/packages/gmp/6.3.0/0000-Complete-function-prototype-in-acinclude.patch new file mode 100644 index 00000000..55efaca2 --- /dev/null +++ b/packages/gmp/6.3.0/0000-Complete-function-prototype-in-acinclude.patch @@ -0,0 +1,31 @@ +From: Marc Glisse +Date: Wed, 29 Jan 2025 22:38:02 +0100 +Subject: [PATCH] Complete function prototype in acinclude.m4 for C23 + compatibility +--- + acinclude.m4 | 2 +- + configure | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -609,7 +609,7 @@ + + #if defined (__GNUC__) && ! defined (__cplusplus) + typedef unsigned long long t1;typedef t1*t2; +-void g(){} ++void g(int,t1 const*,t1,t2,t1 const*,int){} + void h(){} + static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) + {t1 c,x,r;int i;if(v0){c=1;for(i=1;i