mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
client/slave: explictly add ‘extern char **environ’
It’s not in any header files on FreeBSD.
This commit is contained in:
parent
261797ec56
commit
fd414f79be
2 changed files with 4 additions and 0 deletions
2
client.c
2
client.c
|
|
@ -25,6 +25,8 @@
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
|
|
||||||
|
extern char **environ;
|
||||||
|
|
||||||
struct string {
|
struct string {
|
||||||
size_t len;
|
size_t len;
|
||||||
char *str;
|
char *str;
|
||||||
|
|
|
||||||
2
slave.c
2
slave.c
|
|
@ -23,6 +23,8 @@
|
||||||
#include "tokenize.h"
|
#include "tokenize.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
|
|
||||||
|
extern char **environ;
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
is_valid_shell(const char *shell)
|
is_valid_shell(const char *shell)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue