From c37acaaebe4692a1f7bf667a1f58db16da2cbe71 Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Mon, 2 Mar 2026 08:09:54 -0500 Subject: [PATCH] fix(gawk): patch mpfr callback prototype to match mpfr function signatures --- .../patches/fix-mpfr-func-pointer.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 steps-guix/gawk-4.2.1/patches/fix-mpfr-func-pointer.patch diff --git a/steps-guix/gawk-4.2.1/patches/fix-mpfr-func-pointer.patch b/steps-guix/gawk-4.2.1/patches/fix-mpfr-func-pointer.patch new file mode 100644 index 00000000..980f46f1 --- /dev/null +++ b/steps-guix/gawk-4.2.1/patches/fix-mpfr-func-pointer.patch @@ -0,0 +1,15 @@ +SPDX-License-Identifier: GPL-3.0-or-later + +Fix MPFR callback pointer prototype for modern compilers. + +--- gawk-4.2.1/mpfr.c ++++ gawk-4.2.1/mpfr.c +@@ -689,7 +689,7 @@ + + static inline NODE * + do_mpfr_func(const char *name, +- int (*mpfr_func)(), /* putting argument types just gets the compiler confused */ ++ int (*mpfr_func)(mpfr_ptr, mpfr_srcptr, mpfr_rnd_t), + int nargs) + { + NODE *t1, *res;