build: declare environ explicitly on FreeBSD
src/trap.c:107: error: 'environ' undeclared (first use in this function)
This commit is contained in:
parent
9fd07c65a4
commit
226ae844bc
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@ static char tmpbuf[1024];
|
|||
static char libs[1024];
|
||||
static char self[PATH_MAX];
|
||||
|
||||
#ifdef PLATFORM_FREEBSD
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
static void
|
||||
sappend(char *buf, size_t l, const char *fmt, ...)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue