environ is supposed to be declared by <unistd.h>.
authorBruno Haible <bruno@clisp.org>
Wed, 17 Dec 2008 00:56:49 +0000 (01:56 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 17 Dec 2008 00:56:49 +0000 (01:56 +0100)
ChangeLog
lib/unistd.in.h
tests/test-environ.c

index a7ed3e2..2a401a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-12-16  Bruno Haible  <bruno@clisp.org>
 
+       * lib/unistd.in.h: Add comment.
+       * tests/test-environ.c: Don't include <stdlib.h>.
+
+2008-12-16  Bruno Haible  <bruno@clisp.org>
+
        * lib/parse-duration.h (parse_duration): Document return value
        convention.
        * lib/parse-duration.c: Include specification header first. Add
index fa8616a..05778f9 100644 (file)
@@ -35,6 +35,7 @@
 #endif
 
 /* mingw fails to declare _exit in <unistd.h>.  */
+/* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
 #include <stdlib.h>
 
 #if @GNULIB_WRITE@ && @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@
index 3924288..d9501bb 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <unistd.h>
 
-#include <stdlib.h>
 #include <string.h>
 
 int