fix(gawk): make strtod patch apply cleanly by dropping obsolete declaration

This commit is contained in:
vxtls 2026-03-02 12:59:21 -05:00
parent 197f1755e9
commit e19f13fcd4

View file

@ -1,15 +1,14 @@
SPDX-License-Identifier: GPL-3.0-or-later 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
+++ gawk-4.2.1/node.c +++ gawk-4.2.1/node.c
@@ -62,7 +62,7 @@ @@ -62,7 +62,6 @@ r_force_number(NODE *n)
#endif char *cpend;
char save;
#ifndef __STDC__ char *ptr;
- extern double strtod(); - 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;