From: Karel Zak Date: Mon, 25 Oct 2021 09:45:46 +0000 (+0200) Subject: build-sys: include xlocale.h for locale_t on MacOS X-Git-Tag: v2.38-rc1~201 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc6a38ed286c6f311fa5c3af93b3033ce9e14b96;p=thirdparty%2Futil-linux.git build-sys: include xlocale.h for locale_t on MacOS Addresses: https://github.com/karelzak/util-linux/issues/1432 Signed-off-by: Karel Zak --- diff --git a/lib/c_strtod.c b/lib/c_strtod.c index 21b80fd35d..d25ee27749 100644 --- a/lib/c_strtod.c +++ b/lib/c_strtod.c @@ -14,6 +14,10 @@ #include "c_strtod.h" +#ifdef __APPLE__ +# include +#endif + #if defined(HAVE_NEWLOCALE) && (defined(HAVE_STRTOD_L) || defined(HAVE_USELOCALE)) # define USE_CLOCALE #endif