summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorAndy Broad <andy@broad.ology.org.uk>2015-08-27 09:31:34 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2015-09-05 11:12:45 -0400
commit6e3136a65af8652c1ee695f86642438ada8d82cb (patch)
treeb87c4a7d39a08d38b7f9c61ab8dc3d63fa01ce59 /perl.h
parent5ce45b7bbc7aa6b7aeb0db6c6a7faa07a30bff04 (diff)
downloadperl-6e3136a65af8652c1ee695f86642438ada8d82cb.tar.gz
amigaos4: use our own environ implementation
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 9178dfc535..9ff2015544 100644
--- a/perl.h
+++ b/perl.h
@@ -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 */