From: Bruno Haible Date: Thu, 27 May 2004 14:46:08 +0000 (+0000) Subject: Declare environ if needed. X-Git-Tag: v0.14.2~256 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fee60b95f20a5f6468402972691c5f4df5439c0;p=thirdparty%2Fgettext.git Declare environ if needed. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 48604df74..329d3ac2d 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,8 @@ +2004-05-27 Bruno Haible + + * execute.c (environ): Declare if needed. + * pipe.c (environ): Likewise. + 2004-04-28 Bruno Haible * basename.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Treat Cygwin like diff --git a/gettext-tools/lib/execute.c b/gettext-tools/lib/execute.c index 86df308f2..b4a093d07 100644 --- a/gettext-tools/lib/execute.c +++ b/gettext-tools/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/gettext-tools/lib/pipe.c b/gettext-tools/lib/pipe.c index 36d7ad029..7623e69a1 100644 --- a/gettext-tools/lib/pipe.c +++ b/gettext-tools/lib/pipe.c @@ -60,6 +60,10 @@ #endif +#ifndef HAVE_ENVIRON_DECL +extern char **environ; +#endif + #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif