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 0f72d0c..6b4623e 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 86df308..b4a093d 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 36d7ad0..7623e69 100644 (file)
 
 #endif
 
+#ifndef HAVE_ENVIRON_DECL
+extern char **environ;
+#endif
+
 #ifndef STDIN_FILENO
 # define STDIN_FILENO 0
 #endif