build: declare environ explicitly on FreeBSD

src/trap.c:107: error: 'environ' undeclared (first use in this function)
This commit is contained in:
Bernhard Froehlich 2014-01-10 20:51:26 +00:00
parent 9fd07c65a4
commit 226ae844bc

View file

@ -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, ...)
{