From aa6ca1bbbc700acfb932d9f9148dd9674a414ce4 Mon Sep 17 00:00:00 2001 From: Christian Valente Date: Thu, 14 Nov 2024 20:46:07 +0200 Subject: [PATCH] Fix for non-clang compilers --- src/solver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver.cc b/src/solver.cc index 93fa1e10d..4c835ecc0 100644 --- a/src/solver.cc +++ b/src/solver.cc @@ -1088,7 +1088,7 @@ void WarnOnDifferentCapitalizations(const std::string& target_name) { bool has_seen_variant = false; bool printed_header = false; - for (char** env = ::environ; *env != nullptr; ++env) { + for (char** env = environ; *env != nullptr; ++env) { std::string env_entry = *env; auto delimiter_pos = env_entry.find('=');