]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: include xlocale.h for locale_t on MacOS
authorKarel Zak <kzak@redhat.com>
Mon, 25 Oct 2021 09:45:46 +0000 (11:45 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 25 Oct 2021 09:45:46 +0000 (11:45 +0200)
Addresses: https://github.com/karelzak/util-linux/issues/1432
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/c_strtod.c

index 21b80fd35dcf5115edfbd32e788325cecc29a1a5..d25ee2774926b1228f2be0c530796e0c124a5759 100644 (file)
 
 #include "c_strtod.h"
 
+#ifdef __APPLE__
+# include <xlocale.h>
+#endif
+
 #if defined(HAVE_NEWLOCALE) && (defined(HAVE_STRTOD_L) || defined(HAVE_USELOCALE))
 # define USE_CLOCALE
 #endif