summaryrefslogtreecommitdiff
path: root/epoc
diff options
context:
space:
mode:
Diffstat (limited to 'epoc')
-rw-r--r--epoc/epocish.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/epoc/epocish.h b/epoc/epocish.h
index a971a8e6c7..34121ef16f 100644
--- a/epoc/epocish.h
+++ b/epoc/epocish.h
@@ -108,11 +108,13 @@
/* epocemx setenv bug workaround */
#ifndef PERL_SYS_INIT
-# define PERL_SYS_INIT(c,v) MALLOC_CHECK_TAINT2(*c,*v) putenv(".dummy=foo"); putenv(".dummy"); MALLOC_INIT
+# define PERL_SYS_INIT(c,v) \
+ MALLOC_CHECK_TAINT2(*c,*v) putenv(".dummy=foo"); putenv(".dummy"); \
+ PERLIO_INIT; MALLOC_INIT
#endif
#ifndef PERL_SYS_TERM
-#define PERL_SYS_TERM() MALLOC_TERM
+#define PERL_SYS_TERM() PERLIO_TERM; MALLOC_TERM
#endif
#define BIT_BUCKET "/dev/null"