diff --git a/lib/libc/stdlib/netbsd_strtod.c b/lib/libc/stdlib/netbsd_strtod.c index b48f8279662c..7d80838a5c0d 100644 --- a/lib/libc/stdlib/netbsd_strtod.c +++ b/lib/libc/stdlib/netbsd_strtod.c @@ -370,7 +370,7 @@ extern double rnd_prod(double, double), rnd_quot(double, double); #ifdef __cplusplus extern "C" double strtod(const char *s00, char **se); extern "C" char *__dtoa(double d, int mode, int ndigits, - int *decpt, int *sign, char **rve); + int *decpt, int *sign, char **rve, char **resultp); #endif struct diff --git a/lib/libc/stdlib/strtod.c b/lib/libc/stdlib/strtod.c index 1ed622c33217..f8ed1c3df610 100644 --- a/lib/libc/stdlib/strtod.c +++ b/lib/libc/stdlib/strtod.c @@ -359,8 +359,8 @@ extern double rnd_prod(double, double), rnd_quot(double, double); #ifdef __cplusplus extern "C" double strtod(const char *s00, char **se); -extern "C" char *dtoa(double d, int mode, int ndigits, - int *decpt, int *sign, char **rve); +extern "C" char *__dtoa(double d, int mode, int ndigits, + int *decpt, int *sign, char **rve, char **resultp); #endif struct