diff options
author | Eric Blake <eblake@redhat.com> | 2011-02-05 14:31:59 -0700 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-02-05 15:19:15 -0700 |
commit | ad98f8ef519af652b76508875f037fb3ca95a35f (patch) | |
tree | 97744c8cbe039e9dcf41014473f43459442524a1 /doc | |
parent | abac9b73490cd4d59a1e454c6ade5fd2073f2d2f (diff) | |
download | gnulib-ad98f8ef519af652b76508875f037fb3ca95a35f.tar.gz |
unsetenv: work around Haiku issues
On Haiku alpha 2, test-unsetenv.c passed in isolation with just
system headers, but failed when libgnu and replacement headers
were in use. Why? Because putenv("a") fails to remove "a=..."
from the environment, but the gnulib rpl_putenv works by
assigning to environ. Apparently, Haiku is doing some funky
caching issues, and correctly removes all vestiges of environment
duplicates when Haiku is in charge, but not after assigning to
environ forces Haiku to rebuild its cache.
The m4 change is sufficient to detect Haiku's oddities, and the
existing replacement then passes just fine.
* m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
* doc/posix-functions/unsetenv.texi (unsetenv): Document it.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-functions/unsetenv.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/posix-functions/unsetenv.texi b/doc/posix-functions/unsetenv.texi index 160ef83575..2c43b1e530 100644 --- a/doc/posix-functions/unsetenv.texi +++ b/doc/posix-functions/unsetenv.texi @@ -25,7 +25,7 @@ FreeBSD 6.0, NetBSD 1.6, OpenBSD 4.7. @item This function removes only the first value association for the given environment variable, not all of them, on some platforms: -Solaris 11 2010-11. +Solaris 11 2010-11, Haiku. @end itemize Portability problems not fixed by Gnulib: |