LibCore: Fix AK_OS_ANDROID build

b9dc2d7 accidentally broke Android builds, this fixes that regression.
This commit is contained in:
Filiph Siitam Sandström 2024-03-04 00:44:22 +01:00 committed by Sam Atkins
parent c20bc22bae
commit d6ab5c9b7d
Notes: sideshowbarker 2024-07-16 23:52:22 +09:00

View file

@ -93,7 +93,7 @@ Optional<StringView> get(StringView name, [[maybe_unused]] SecureOnly secure)
builder.append('\0');
// Note the explicit null terminators above.
#if defined(AK_OS_MACOS)
#if defined(AK_OS_MACOS) || defined(AK_OS_ANDROID)
char* result = ::getenv(builder.string_view().characters_without_null_termination());
#else
char* result;