authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-02 04:16:43+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-07 00:30:52+02:00
log65f29a73448564ad120168fbfd7f4e76ef63f4f6
tree33d3c864aa83ccd5cc15f6478cf420f556e17b69
parent709430de4b4c7a0718e2702b76dfb2516bd778e2
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

libcxx: fix OpenBSD build failure due to missing __get_locale_encoding()

https://github.com/llvm/llvm-project/pull/228306

1 files changed, 7 insertions(+), 0 deletions(-)

lib/libcxx/include/__locale_dir/support/openbsd.h+7
......@@ -24,6 +24,9 @@
2424# include <wchar.h>
2525# include <wctype.h>
2626#endif
27#if defined(_LIBCPP_BUILDING_LIBRARY)
28# include <langinfo.h>
29#endif
2730
2831#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2932# pragma GCC system_header
......@@ -74,6 +77,10 @@ inline __lconv_t* __localeconv(__locale_t& __loc) {
7477 __locale_guard __current(__loc);
7578 return ::localeconv();
7679}
80
81inline _LIBCPP_HIDE_FROM_ABI const char* __get_locale_encoding(__locale_t __loc) {
82 return ::nl_langinfo_l(CODESET, __loc);
83}
7784#endif // _LIBCPP_BUILDING_LIBRARY
7885
7986//