From fd414f79be177b23a67ce87b81657c2bfd80a35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 11 Apr 2022 13:24:27 +0200 Subject: [PATCH] =?UTF-8?q?client/slave:=20explictly=20add=20=E2=80=98exte?= =?UTF-8?q?rn=20char=20**environ=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s not in any header files on FreeBSD. --- client.c | 2 ++ slave.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/client.c b/client.c index 7d524204..7624e7db 100644 --- a/client.c +++ b/client.c @@ -25,6 +25,8 @@ #include "version.h" #include "xmalloc.h" +extern char **environ; + struct string { size_t len; char *str; diff --git a/slave.c b/slave.c index 4e8610ce..dc4a8bc6 100644 --- a/slave.c +++ b/slave.c @@ -23,6 +23,8 @@ #include "tokenize.h" #include "xmalloc.h" +extern char **environ; + static bool is_valid_shell(const char *shell) {