> That would work with GNU C library since it is defined as follows:
> 
> /* NULL-terminated array of "NAME=VALUE" environment variables.  */
> extern char **__environ;
> #ifdef __USE_GNU
> extern char **environ;
> #endif
> 
> I'm not sure how it is defined on other Unix systems.  On Solaris 9 it
> doesn't exist in /usr/include/unistd.h:
> 
> Solaris-9% grep environ /usr/include/unistd.h
> /* large file compilation environment setup */
> /* In the LP64 compilation environment, the APIs are already large file */

environ is found more or less everywhere:

0) in most systems it is in unistd.h

1) in some systems it is in stdlib.h

2) of all others, Apple systems do not have it but you can use

   #include <crt_externs.h>
   #define environ (*_NSGetEnviron ())

3) otherwise you can define it as

   extern char **environ;

Paolo


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to