Skip to content

Commit

Permalink
Shell: Explicitly declare 'environ' to make the macOS Lagom build happy
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpfard authored and awesomekling committed Jul 14, 2020
1 parent 4eb967b commit cd8495f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Shell/Builtin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
#include <inttypes.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>

extern char** environ;
extern RefPtr<Line::Editor> editor;

int Shell::builtin_alias(int argc, const char** argv)
Expand Down
1 change: 1 addition & 0 deletions Shell/Shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

static bool s_disable_hyperlinks = false;
extern RefPtr<Line::Editor> editor;
extern char** environ;

//#define SH_DEBUG

Expand Down

0 comments on commit cd8495f

Please sign in to comment.