Browse Source

LibCore: Fix `AK_OS_ANDROID` build

b9dc2d7 accidentally broke Android builds, this fixes that regression.
Filiph Siitam Sandström 1 year ago
parent
commit
d6ab5c9b7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibCore/Environment.cpp

+ 1 - 1
Userland/Libraries/LibCore/Environment.cpp

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