as suggested by Olaf Flebbe and Nicholas Clark.
p4raw-id: //depot/perl@7126
#define init_os_extras Perl_init_os_extras
+#define NO_ENVIRON_ARRAY
# endif
# endif
# endif
-#endif
+#endif
+
+#ifndef NO_ENVIRON_ARRAY
+# define USE_ENVIRON_ARRAY
+#endif
#ifndef PERL_SYS_INIT3
# define PERL_SYS_INIT3(argvp,argcp,envp) PERL_SYS_INIT(argvp,argcp)
# endif
#else
/* VMS and some other platforms don't use the environ array */
-# if !defined(VMS)
+# ifdef USE_ENVIRON_ARRAY
# if !defined(DONT_DECLARE_STD) || \
(defined(__svr4__) && defined(__GNUC__) && defined(sun)) || \
defined(__sgi) || \
#define BIT_BUCKET "/dev/null"
#define dXSUB_SYS
+
+#define USE_ENVIRON_ARRAY
+
}
}
-#if !defined( VMS) && !defined(EPOC)
- /* VMS' and EPOC's my_setenv() is in VMS.c */
-#if !defined(WIN32) && !defined(__CYGWIN__) &&
+#ifdef USE_ENVIRON_ARRAY
+ /* VMS' and EPOC's my_setenv() is in vms.c and epoc.c */
+#if !defined(WIN32) && !defined(__CYGWIN__)
void
Perl_my_setenv(pTHX_ char *nam, char *val)
{
# undef fileno
#endif
+#define NO_ENVIRON_ARRAY
+
#endif /* __vmsish_h_included */