--- a/layers/vk_layer_config.cpp
+++ b/layers/vk_layer_config.cpp
@@ -74,7 +74,7 @@
 #endif
 
 std::string GetEnvironment(const char *variable) {
-#if !defined(__ANDROID__) && !defined(_WIN32)
+#if !defined(__ANDROID__) && !defined(_WIN32) || defined(__TERMUX__)
     const char *output = getenv(variable);
     return output == NULL ? "" : output;
 #elif defined(_WIN32)
