From 96765e21210d3c068d75bfb448fcf78e14b06433 Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Mon, 2 Mar 2026 10:30:18 -0500 Subject: [PATCH] fix(gawk): patch legacy strtod declaration to modern prototype in node.c --- .../gawk-4.2.1/patches/fix-strtod-prototype.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 steps-guix/gawk-4.2.1/patches/fix-strtod-prototype.patch 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 new file mode 100644 index 00000000..c539dcc6 --- /dev/null +++ b/steps-guix/gawk-4.2.1/patches/fix-strtod-prototype.patch @@ -0,0 +1,15 @@ +SPDX-License-Identifier: GPL-3.0-or-later + +Fix legacy strtod declaration to match modern libc prototype. + +--- gawk-4.2.1/node.c ++++ gawk-4.2.1/node.c +@@ -62,7 +62,7 @@ + #endif + + #ifndef __STDC__ +- extern double strtod(); ++ extern double strtod(const char *, char **); + #endif + + /* r_force_number --- force a value to be numeric */