From 7006c85f7b688a390444f5c91e145b89f478c6ce Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 17 Dec 2008 01:56:49 +0100 Subject: [PATCH] environ is supposed to be declared by . --- ChangeLog | 5 +++++ lib/unistd.in.h | 1 + tests/test-environ.c | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a7ed3e2067..2a401a1e05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-16 Bruno Haible + + * lib/unistd.in.h: Add comment. + * tests/test-environ.c: Don't include . + 2008-12-16 Bruno Haible * lib/parse-duration.h (parse_duration): Document return value diff --git a/lib/unistd.in.h b/lib/unistd.in.h index fa8616a2a2..05778f90ad 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -35,6 +35,7 @@ #endif /* mingw fails to declare _exit in . */ +/* mingw, BeOS, Haiku declare environ in , not in . */ #include #if @GNULIB_WRITE@ && @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@ diff --git a/tests/test-environ.c b/tests/test-environ.c index 3924288e80..d9501bbdaf 100644 --- a/tests/test-environ.c +++ b/tests/test-environ.c @@ -20,7 +20,6 @@ #include -#include #include int -- 2.30.2