summaryrefslogtreecommitdiff
path: root/win32/perllib.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/perllib.c')
-rw-r--r--win32/perllib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/perllib.c b/win32/perllib.c
index 48843f92da..3b57efba8d 100644
--- a/win32/perllib.c
+++ b/win32/perllib.c
@@ -371,7 +371,9 @@ DllMain(HANDLE hModule, /* DLL module handle */
* process termination or call to FreeLibrary.
*/
case DLL_PROCESS_DETACH:
+#if !defined(PERLIO_IS_STDIO) && !defined(USE_SFIO)
PerlIO_cleanup();
+#endif
EndSockets();
#if defined(USE_THREADS) || defined(USE_ITHREADS)
if (PL_curinterp)