summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-02-14 03:14:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-02-14 03:14:14 +0000
commit103a71894980ab015937511f33d840c7f030e8a4 (patch)
treefacc950261409b42ab5402feb9da5f6d52af61df /perl.h
parent741f3e25d63cec2ca498f516e3ad73196398ec38 (diff)
downloadperl-103a71894980ab015937511f33d840c7f030e8a4.tar.gz
Duplicate environment for JPL so that JDK 1.2/1.3 don't get upset.
p4raw-id: //depot/perl@8803
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 8953c6a0d8..c92e4db412 100644
--- a/perl.h
+++ b/perl.h
@@ -1692,6 +1692,13 @@ typedef struct ptr_tbl PTR_TBL_t;
# define USE_ENVIRON_ARRAY
#endif
+#ifdef JPL
+ /* E.g. JPL needs to operate on a copy of the real environment.
+ * JDK 1.2 and 1.3 seem to get upset if the original environment
+ * is diddled with. */
+# define NEED_ENVIRON_DUP_FOR_MODIFY
+#endif
+
#ifndef PERL_SYS_INIT3
# define PERL_SYS_INIT3(argvp,argcp,envp) PERL_SYS_INIT(argvp,argcp)
#endif