summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-13 18:18:44 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-13 18:18:44 -0400
commit35eb1a1a9b97577e113240cd65bf9fc44b8df030 (patch)
treede09db115efe426ebbe59df8c7a65d3c81d38577
parent804e9940049934215d2947c1068016cba852e560 (diff)
downloadmusl-35eb1a1a9b97577e113240cd65bf9fc44b8df030.tar.gz
musl-35eb1a1a9b97577e113240cd65bf9fc44b8df030.tar.bz2
musl-35eb1a1a9b97577e113240cd65bf9fc44b8df030.tar.xz
musl-35eb1a1a9b97577e113240cd65bf9fc44b8df030.zip
provide declarations for strtod_l and family
these aliases were originally intended to be for ABI compatibility only, but their presence caused regressions in broken gnulib-based software whose configure scripts detect the existing of these functions then use them without declarations, resulting in bogus return values.
-rw-r--r--include/stdlib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 548bbca6..bca1fb41 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -149,6 +149,10 @@ int ptsname_r(int, char *, size_t);
char *ecvt(double, int, int *, int *);
char *fcvt(double, int, int *, int *);
char *gcvt(double, int, char *);
+struct __locale_struct;
+float strtof_l(const char *__restrict, char **__restrict, struct __locale_struct *);
+double strtod_l(const char *__restrict, char **__restrict, struct __locale_struct *);
+long double strtold_l(const char *__restrict, char **__restrict, struct __locale_struct *);
#endif
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)