Declare environ; not all systems declare it.
authorBruno Haible <bruno@clisp.org>
Mon, 17 Jan 2005 12:55:00 +0000 (12:55 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 17 Jan 2005 12:55:00 +0000 (12:55 +0000)
lib/ChangeLog
lib/execute.c
lib/pipe.c

index 0f72d0c99187e993b552fb5bdb6c5351b175773c..6b4623ecaaa3db4d79a88d89f4e17b3fb3df4f98 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-27  Bruno Haible  <bruno@clisp.org>
+
+       * execute.c (environ): Declare if needed.
+       * pipe.c (environ): Likewise.
+       Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
+
 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        * human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
index 86df308f2d20dc2504b21d327d154717a64b2313..b4a093d07933739e4512524a36041e93c3d84204 100644 (file)
@@ -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 <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
 
 #endif
 
+#ifndef HAVE_ENVIRON_DECL
+extern char **environ;
+#endif
+
 #ifndef STDIN_FILENO
 # define STDIN_FILENO 0
 #endif
index 36d7ad02992009926cba064aa54df702da011cb6..7623e69a146cd6fec4916219e8857565c3ed5b06 100644 (file)
 
 #endif
 
+#ifndef HAVE_ENVIRON_DECL
+extern char **environ;
+#endif
+
 #ifndef STDIN_FILENO
 # define STDIN_FILENO 0
 #endif