diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-03-11 17:28:10 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-03-11 17:28:10 +0000 |
commit | f694c0783e705c190dce7a0fd03a4e25aecbb07d (patch) | |
tree | 47707cc822d91cd3bd7fb85a074c09b594b9188f /vms | |
parent | 8d71492d0d7976c7933e9f2846c09523f7b5b998 (diff) | |
download | perl-f694c0783e705c190dce7a0fd03a4e25aecbb07d.tar.gz |
Integrate:
[ 33451]
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-link: @33451 on //depot/perl: 75ca6fb6be93753b6f530f049fb88e4001c98466
p4raw-id: //depot/maint-5.10/perl@33477
p4raw-integrated: from //depot/perl@33464 'merge in' vms/vms.c
(@33343..)
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10423,7 +10423,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)); } |