From e19f13fcd459ce1a5b86fad7802ca3d99a9a1b7f Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Mon, 2 Mar 2026 12:59:21 -0500 Subject: [PATCH] fix(gawk): make strtod patch apply cleanly by dropping obsolete declaration --- .../gawk-4.2.1/patches/fix-strtod-prototype.patch | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/steps-guix/gawk-4.2.1/patches/fix-strtod-prototype.patch b/steps-guix/gawk-4.2.1/patches/fix-strtod-prototype.patch index c539dcc6..8cf3fdb6 100644 --- a/steps-guix/gawk-4.2.1/patches/fix-strtod-prototype.patch +++ b/steps-guix/gawk-4.2.1/patches/fix-strtod-prototype.patch @@ -1,15 +1,14 @@ SPDX-License-Identifier: GPL-3.0-or-later -Fix legacy strtod declaration to match modern libc prototype. +Drop obsolete K&R-style strtod declaration in node.c. --- gawk-4.2.1/node.c +++ gawk-4.2.1/node.c -@@ -62,7 +62,7 @@ - #endif - - #ifndef __STDC__ +@@ -62,7 +62,6 @@ r_force_number(NODE *n) + char *cpend; + char save; + char *ptr; - extern double strtod(); -+ extern double strtod(const char *, char **); - #endif - /* r_force_number --- force a value to be numeric */ + if ((n->flags & NUMCUR) != 0) + return n;