develooper Front page | perl.perl5.porters | Postings from December 2010

[perl #81500] [PATCH] Make compilation work when NO_ENV_ARRAY_IN_MAIN is defined

Thread Previous
From:
David Leadbeater
Date:
December 31, 2010 15:17
Subject:
[perl #81500] [PATCH] Make compilation work when NO_ENV_ARRAY_IN_MAIN is defined
Message ID:
rt-3.6.HEAD-5425-1293814053-803.81500-75-0@perl.org
# New Ticket Created by  David Leadbeater 
# Please include the string:  [perl #81500]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81500 >


From: David Leadbeater <dgl@dgl.cx>

This is only normally defined if OEMVS is defined; the commit that added it
(2f3efc97) claims z/OS support. I guess no-one has tried this for awhile as
dd374669 broke this in 2005.
---
 miniperlmain.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/miniperlmain.c b/miniperlmain.c
index 39f8f19..59d79b0 100644
--- a/miniperlmain.c
+++ b/miniperlmain.c
@@ -74,7 +74,9 @@ main(int argc, char **argv, char **env)
     my_vars = my_plvarsp = plvarsp;
 #  endif
 #endif /* PERL_GLOBAL_STRUCT */
-    (void)env;
+#ifndef NO_ENV_ARRAY_IN_MAIN
+    PERL_UNUSED_ARG(env);
+#endif
 #ifndef PERL_USE_SAFE_PUTENV
     PL_use_safe_putenv = 0;
 #endif /* PERL_USE_SAFE_PUTENV */
-- 
1.7.3.3


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About