summaryrefslogtreecommitdiff
path: root/unixish.h
diff options
context:
space:
mode:
Diffstat (limited to 'unixish.h')
-rw-r--r--unixish.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/unixish.h b/unixish.h
index 631a619a1d..a08e8ba051 100644
--- a/unixish.h
+++ b/unixish.h
@@ -131,7 +131,11 @@
#endif
#ifndef PERL_SYS_TERM
-#define PERL_SYS_TERM() HINTS_REFCNT_TERM; OP_REFCNT_TERM; MALLOC_TERM
+# ifdef USE_PERLIO
+# define PERL_SYS_TERM() HINTS_REFCNT_TERM; OP_REFCNT_TERM; PERLIO_TERM; MALLOC_TERM
+# else
+# define PERL_SYS_TERM() HINTS_REFCNT_TERM; OP_REFCNT_TERM; MALLOC_TERM
+# endif
#endif
#define BIT_BUCKET "/dev/null"