diff options
author | Andy Broad <andy@broad.ology.org.uk> | 2015-08-27 09:31:34 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2015-09-05 11:12:45 -0400 |
commit | 6e3136a65af8652c1ee695f86642438ada8d82cb (patch) | |
tree | b87c4a7d39a08d38b7f9c61ab8dc3d63fa01ce59 /perl.h | |
parent | 5ce45b7bbc7aa6b7aeb0db6c6a7faa07a30bff04 (diff) | |
download | perl-6e3136a65af8652c1ee695f86642438ada8d82cb.tar.gz |
amigaos4: use our own environ implementation
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -778,6 +778,15 @@ /* If this causes problems, set i_unistd=undef in the hint file. */ #ifdef I_UNISTD # include <unistd.h> +# if defined(__amigaos4__) +/* Under AmigaOS 4 newlib.library provides an environ. However using + * it doesn't give us enough control over inheritance of variables by + * subshells etc. so replace with custom version based on abc-shell + * code. */ +extern char **myenviron; +# undef environ +# define environ myenviron +# endif #endif /* for WCOREDUMP */ |