From c54b5d8d8e1af1fe69da36b12d2ba79580a9ce55 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sat, 15 Oct 2011 02:45:14 +0200 Subject: [PATCH] crt1.o: provide symbol definition of environ Provide duplicate definition of char **environ to prevent linker choking on version scripts ending with "local: *". --- lib/libc/stdlib/getenv.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c index 731b3c5..167dd7d 100644 --- a/lib/libc/stdlib/getenv.c +++ b/lib/libc/stdlib/getenv.c @@ -24,7 +24,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/lib/libc/stdlib/getenv.c,v 1.15 2008/08/03 22:47:23 scf Exp $ - * $DragonFly: src/lib/libc/stdlib/getenv.c,v 1.5 2005/04/28 13:51:55 joerg Exp $ */ #include "namespace.h" @@ -53,7 +52,7 @@ static const char CorruptEnvValueMsg[] = * intEnviron: Internally-built environ. Exposed via environ during * (re)builds of the environment. */ -extern char **environ; +char **environ; static char **origEnviron; static char **intEnviron = NULL; static int environSize = 0; -- 1.7.7.2