45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
--- a/JUCE/modules/juce_core/native/juce_linux_SystemStats.cpp
|
|
+++ b/JUCE/modules/juce_core/native/juce_linux_SystemStats.cpp
|
|
@@ -198,7 +198,7 @@ String SystemStats::getComputerName()
|
|
|
|
String SystemStats::getUserLanguage()
|
|
{
|
|
- #if JUCE_BSD
|
|
+ #if JUCE_BSD || !defined(__GLIBC__)
|
|
if (auto langEnv = getenv ("LANG"))
|
|
return String::fromUTF8 (langEnv).upToLastOccurrenceOf (".UTF-8", false, true);
|
|
|
|
@@ -210,7 +210,7 @@ String SystemStats::getUserLanguage()
|
|
|
|
String SystemStats::getUserRegion()
|
|
{
|
|
- #if JUCE_BSD
|
|
+ #if JUCE_BSD || !defined(__GLIBC__)
|
|
return {};
|
|
#else
|
|
return getLocaleValue (_NL_IDENTIFICATION_TERRITORY);
|
|
|
|
--- a/JUCE/modules/juce_core/system/juce_SystemStats.cpp
|
|
+++ b/JUCE/modules/juce_core/system/juce_SystemStats.cpp
|
|
@@ -138,7 +138,7 @@ String SystemStats::getStackBacktrace()
|
|
{
|
|
String result;
|
|
|
|
- #if JUCE_ANDROID || JUCE_MINGW || JUCE_WASM
|
|
+ #if JUCE_ANDROID || JUCE_MINGW || JUCE_WASM || !defined(__GLIBC__)
|
|
jassertfalse; // sorry, not implemented yet!
|
|
|
|
#elif JUCE_WINDOWS
|
|
|
|
--- a/JUCE/modules/juce_core/juce_core.cpp
|
|
+++ b/JUCE/modules/juce_core/juce_core.cpp
|
|
@@ -102,7 +102,7 @@
|
|
#include <net/if.h>
|
|
#include <sys/ioctl.h>
|
|
|
|
- #if ! (JUCE_ANDROID || JUCE_WASM)
|
|
+ #if ! (JUCE_ANDROID || JUCE_WASM) && defined(__GLIBC__)
|
|
#include <execinfo.h>
|
|
#endif
|
|
#endif
|