Add fallback wcstod_l for musl

Just sets locale to "C" (because that's the only one we need), does
wcstod and resets the locale.

No idea why uselocale(loc) failed for me, but it did.

Fixes #5407.
This commit is contained in:
Fabian Homborg
2018-12-12 15:12:12 +01:00
parent 355cb88e38
commit ffab420e43
4 changed files with 21 additions and 0 deletions

View File

@@ -316,6 +316,7 @@ AC_STRUCT_DIRENT_D_TYPE
#
AC_CHECK_FUNCS( wcsndup )
AC_CHECK_FUNCS( wcstod_l )
AC_CHECK_FUNCS( futimes )
AC_CHECK_FUNCS( wcslcpy lrand48_r killpg )
AC_CHECK_FUNCS( backtrace_symbols getifaddrs )