From 226ae844bc79b4c295a1441e63cc28639cb7e5ea Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Fri, 10 Jan 2014 20:51:26 +0000 Subject: [PATCH] build: declare environ explicitly on FreeBSD src/trap.c:107: error: 'environ' undeclared (first use in this function) --- src/trap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/trap.c b/src/trap.c index db9a3799..00664724 100644 --- a/src/trap.c +++ b/src/trap.c @@ -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, ...) {