summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perl.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/perl.c b/perl.c
index 48ddb7abae..38ed6386b1 100644
--- a/perl.c
+++ b/perl.c
@@ -1295,18 +1295,20 @@ perl_free(pTHXx)
#endif
#if defined(WIN32) || defined(NETWARE)
+ {
# if defined(PERL_IMPLICIT_SYS)
# ifdef NETWARE
- void *host = nw_internal_host;
+ void *host = nw_internal_host;
# else
- void *host = w32_internal_host;
+ void *host = w32_internal_host;
# endif
- PerlMem_free(aTHXx);
+ PerlMem_free(aTHXx);
# ifdef NETWARE
- nw_delete_internal_host(host);
+ nw_delete_internal_host(host);
# else
- win32_delete_internal_host(host);
+ win32_delete_internal_host(host);
# endif
+ }
# else
PerlMem_free(aTHXx);
# endif