diff options
author | Craig A. Berry <craigberry@mac.com> | 2008-03-07 13:48:58 +0000 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2008-03-07 13:48:58 +0000 |
commit | 75ca6fb6be93753b6f530f049fb88e4001c98466 (patch) | |
tree | 52383e46df5c5eaf786b43debb44506f8a340b2e /vms | |
parent | 6e9b0e18b74568df48892177bec423fc6a68b426 (diff) | |
download | perl-75ca6fb6be93753b6f530f049fb88e4001c98466.tar.gz |
On VMS, don't call flex_stat from my_flush as the latter may be
called during global destruction and the former checks hints flags
that depend on the interpreter's still existing.
p4raw-id: //depot/perl@33451
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10433,7 +10433,7 @@ Perl_my_flush(pTHX_ FILE *fp) if ((res = fflush(fp)) == 0 && fp) { #ifdef VMS_DO_SOCKETS Stat_t s; - if (Fstat(fileno(fp), &s) == 0 && !S_ISSOCK(s.st_mode)) + if (fstat(fileno(fp), (stat_t *)&s) == 0 && !S_ISSOCK(s.st_mode)) #endif res = fsync(fileno(fp)); } |