From 2306ca2f8c0498f1c576ac53feaca869167d8220 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 17 Jan 2005 12:55:00 +0000 Subject: [PATCH] Declare environ; not all systems declare it. --- lib/ChangeLog | 6 ++++++ lib/execute.c | 6 +++++- lib/pipe.c | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 0f72d0c991..6b4623ecaa 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2004-05-27 Bruno Haible + + * execute.c (environ): Declare if needed. + * pipe.c (environ): Likewise. + Reported by Michael Schloh von Bennewitz . + 2005-01-04 Paul Eggert * human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional diff --git a/lib/execute.c b/lib/execute.c index 86df308f2d..b4a093d079 100644 --- a/lib/execute.c +++ b/lib/execute.c @@ -1,5 +1,5 @@ /* Creation of autonomous subprocesses. - Copyright (C) 2001-2003 Free Software Foundation, Inc. + Copyright (C) 2001-2004 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -61,6 +61,10 @@ #endif +#ifndef HAVE_ENVIRON_DECL +extern char **environ; +#endif + #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif diff --git a/lib/pipe.c b/lib/pipe.c index 36d7ad0299..7623e69a14 100644 --- a/lib/pipe.c +++ b/lib/pipe.c @@ -60,6 +60,10 @@ #endif +#ifndef HAVE_ENVIRON_DECL +extern char **environ; +#endif + #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif -- 2.30.2