summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-08-10 02:27:48 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-08-10 02:28:06 +0200
commita4595ac97b6edab4224bb570fca0c27b6575ee3c (patch)
treed3febccf60d6f3120675b26ea3196ff4ce62fb9b
parent076df933eb2d98152218b874abfa91cba660bcbd (diff)
downloadexternal_libcxx-a4595ac97b6edab4224bb570fca0c27b6575ee3c.tar.gz
external_libcxx-a4595ac97b6edab4224bb570fca0c27b6575ee3c.tar.bz2
external_libcxx-a4595ac97b6edab4224bb570fca0c27b6575ee3c.zip
Fix build on Trisquel 9replicant-6.0
Without that fix we have: host C++: llvm-tblgen <= external/llvm/utils/TableGen/AsmWriterInst.cpp In file included from external/llvm/utils/TableGen/AsmMatcherEmitter.cpp:117: In file included from external/libcxx/include/sstream:174: In file included from external/libcxx/include/ostream:138: In file included from external/libcxx/include/ios:216: external/libcxx/include/__locale:39:11: fatal error: 'xlocale.h' file not found # include <xlocale.h> ^ Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--include/__locale2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/__locale b/include/__locale
index 625d0f85e..6fcae87b4 100644
--- a/include/__locale
+++ b/include/__locale
@@ -36,7 +36,7 @@
# include <support/newlib/xlocale.h>
#elif (defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) \
|| defined(__EMSCRIPTEN__) || defined(__IBMCPP__))
-# include <xlocale.h>
+# include <locale.h>
#endif // __GLIBC__ || __APPLE__ || __FreeBSD__ || __sun__ || __EMSCRIPTEN__ || __IBMCPP__
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)