From cd8495f1d4bd460f3b6c4e3964aa407e643520e3 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Tue, 14 Jul 2020 23:22:52 +0430 Subject: [PATCH] Shell: Explicitly declare 'environ' to make the macOS Lagom build happy --- Shell/Builtin.cpp | 2 ++ Shell/Shell.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/Shell/Builtin.cpp b/Shell/Builtin.cpp index 6e2a8e89a4..fb2734b3e4 100644 --- a/Shell/Builtin.cpp +++ b/Shell/Builtin.cpp @@ -31,7 +31,9 @@ #include #include #include +#include +extern char** environ; extern RefPtr editor; int Shell::builtin_alias(int argc, const char** argv) diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index cd22875052..4909b3e8b9 100644 --- a/Shell/Shell.cpp +++ b/Shell/Shell.cpp @@ -52,6 +52,7 @@ static bool s_disable_hyperlinks = false; extern RefPtr editor; +extern char** environ; //#define SH_DEBUG