From: Gurusamy Sarathy Date: Mon, 9 Oct 2000 19:41:54 +0000 (+0000) Subject: tweak for change#7173 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9114b07188664b459df71eeae70be5619f29b102;p=p5sagit%2Fp5-mst-13.2.git tweak for change#7173 p4raw-link: @7173 on //depot/perl: a10b7b7eee64efea010bfdba91243503341ba68d p4raw-id: //depot/perl@7181 --- diff --git a/win32/win32sck.c b/win32/win32sck.c index 594a2e3..3b81d8b 100644 --- a/win32/win32sck.c +++ b/win32/win32sck.c @@ -431,7 +431,9 @@ my_fclose (FILE *pf) win32_fflush(pf); err = closesocket(osf); if (err == 0) { +#if defined(USE_FIXED_OSFHANDLE) || defined(PERL_MSVCRT_READFIX) _set_osfhnd(fileno(pf), INVALID_HANDLE_VALUE); +#endif (void)fclose(pf); /* handle already closed, ignore error */ return 0; }