2 @section @code{environ}
5 POSIX specification: @url{http://www.opengroup.org/susv3xsh/environ.html}
9 Portability problems fixed by Gnulib:
13 Portability problems not fixed by Gnulib:
16 This variable is missing on some platforms:
17 MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, IRIX 6.5, OSF/1 5.1, Cygwin.
19 On MacOS X 10, this variable is not declared. Up to MacOS X 10.4, one can use
21 extern char **environ;
23 to get the variable declared. This does not work any more, however, in
24 shared libraries on MacOS X 10.5. Here is a workaround: Instead, one can use
26 #include <crt_externs.h>
27 #define environ (*_NSGetEnviron())
29 This works at least on MacOS X 10.3 and newer.
31 The address of this variable is not a compile-time constant on some platforms: