Index: include/locale |
diff --git a/include/locale b/include/locale |
index 0d0100204204fc696fd2cd66048eb482272f7723..3affd2db1010666ce3d99ce04f4bcfbfef9f980e 100644 |
--- a/include/locale |
+++ b/include/locale |
@@ -235,7 +235,7 @@ typedef _VSTD::unique_ptr<__locale_struct, decltype(&uselocale)> __locale_raii; |
// locale. Linux, not so much. The following functions avoid the locale when |
// that's possible and otherwise do the wrong thing. FIXME. |
#if defined(__linux__) || defined(__EMSCRIPTEN__) || defined(_AIX) || \ |
- defined(_NEWLIB_VERSION) |
+ defined(_NEWLIB_VERSION) || defined(_LIBCPP_HAS_MUSL_LIBC) |
#ifdef _LIBCPP_LOCALE__L_EXTENSIONS |
decltype(MB_CUR_MAX_L(_VSTD::declval<locale_t>())) |