Skip to content

Commit

Permalink
Fix wxUILocale compilation with musl
Browse files Browse the repository at this point in the history
Avoid using glibc specific defines when using musl, which does not
provide glibc-only enum members such as _NL_ADDRESS_LANG_NAME.

Signed-off-by: Khem Raj <raj.khem@gmail.com>

Closes #23050.
  • Loading branch information
kraj authored and vadz committed Dec 23, 2022
1 parent 1dfab1b commit 1faf179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/uilocale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ wxString
wxUILocaleImplUnix::GetLocalizedName(wxLocaleName name, wxLocaleForm form) const
{
wxString str;
#if defined(HAVE_LANGINFO_H) && defined(__LINUX__)
#if defined(HAVE_LANGINFO_H) && defined(__LINUX__) && defined(__GLIBC__)
switch (name)
{
case wxLOCALE_NAME_LOCALE:
Expand Down

0 comments on commit 1faf179

Please sign in to comment.