skip <xlocale.h> on Linux

It's not available with musl, either, musl intentionally
doesn't provide a preprocessor test, and we're avoiding
(for now) `configure`-time tests in the style of autoconf.

original commit: a9bfb72027fc83ed6bb690d033bc6fed0629dba7
This commit is contained in:
Matthew Flatt 2019-12-11 14:41:07 -07:00
parent 01a40286c2
commit f858bec12a

View File

@ -549,7 +549,7 @@ static void s_ee_write_char(wchar_t c) {
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <wchar.h> #include <wchar.h>
#include <locale.h> #include <locale.h>
#if !defined(__GLIBC__) && !defined(__OpenBSD__) && !defined(__NetBSD__) #if !defined(__GLIBC__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__linux__)
#include <xlocale.h> #include <xlocale.h>
#endif #endif