aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-11 11:24:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-12 13:07:41 +0000
commitfd414f79be177b23a67ce87b81657c2bfd80a35e (patch)
tree153a6fc38d7cfc820070e0c246e11422db991183
parentclient: refactor: add send_string_list() function (diff)
client/slave: explictly add ‘extern char **environ’
It’s not in any header files on FreeBSD.
-rw-r--r--client.c2
-rw-r--r--slave.c2
2 files changed, 4 insertions, 0 deletions
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)
{