MinGW doesn't have the macros S_IRGRP, S_IWGRP, S_IROTH, or S_IWOTH that are used in unix.c.
It also does not have mkstemp(). There is a mkstemps() in libiberty, but it does not appear to be usable for this: <http://gcc.gnu.org/ml/gcc/2004-09/msg00949.html>. -- Summary: Compile errors in libgfortran/io/unix.c break Windows bootstrap Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aaronavay62 at aaronwl dot com CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18105