From dedb16dc0c120d95838b9c92d8ea7f6c72081857 Mon Sep 17 00:00:00 2001 From: David Leadbeater Date: Sun, 2 Jan 2011 13:38:21 -0800 Subject: [perl #81500] Make compilation work when NO_ENV_ARRAY_IN_MAIN is defined 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 file changed, 3 insertions(+), 1 deletion(-) (limited to 'miniperlmain.c') diff --git a/miniperlmain.c b/miniperlmain.c index 39f8f193cd..59d79b0b99 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 */ -- cgit v1.2.1