mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
fix(gawk): patch mpfr callback prototype to match mpfr function signatures
This commit is contained in:
parent
6b37393704
commit
c37acaaebe
1 changed files with 15 additions and 0 deletions
15
steps-guix/gawk-4.2.1/patches/fix-mpfr-func-pointer.patch
Normal file
15
steps-guix/gawk-4.2.1/patches/fix-mpfr-func-pointer.patch
Normal file
|
|
@ -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;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue