Craig A. Berry [Fri, 7 Mar 2008 13:48:58 +0000 (13:48 +0000)]
called during global destruction and the former checks hints flags
that depend on the interpreter's still existing.
p4raw-id: //depot/perl@33451
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));
}