[Replicant] [libcxx] [PATCH] Fix build on Trisquel 9

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Thu Aug 26 07:15:56 UTC 2021


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 at cyberdimension.org>
---
 include/__locale | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.33.0



More information about the Replicant mailing list