From dc6a38ed286c6f311fa5c3af93b3033ce9e14b96 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 25 Oct 2021 11:45:46 +0200 Subject: [PATCH] build-sys: include xlocale.h for locale_t on MacOS Addresses: https://github.com/karelzak/util-linux/issues/1432 Signed-off-by: Karel Zak --- lib/c_strtod.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.2