src/fallback: Include locale.h for the wcstod_l fallback

Fixes #5753.
This commit is contained in:
Fabian Homborg 2019-03-20 08:54:40 +01:00
parent f8b88d5b98
commit 1a53bbeb9d

View File

@ -397,6 +397,7 @@ int flock(int fd, int op) {
#if !defined(HAVE_WCSTOD_L) && !defined(__NetBSD__)
#undef wcstod_l
#include <locale.h>
// For platforms without wcstod_l C extension, wrap wcstod after changing the
// thread-specific locale.
double fish_compat::wcstod_l(const wchar_t *enptr, wchar_t **endptr, locale_t loc) {