This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: bug fc003
FX Coudert wrote:
>>Sorry for a me too but it works correctly on powerpc-darwin
>>(aka Mac OS X) so it could either be a cygwin bug or a libgfortran
>>bug.
>
>
> Is that Cygwin or Mingw bug? In the later case, I will investigate.
I suspect this patch will fix it, but I can't test this on windows:
Index: unix.c
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/io/unix.c,v
retrieving revision 1.21
diff -u -p -r1.21 unix.c
--- unix.c 23 Jan 2005 00:14:31 -0000 1.21
+++ unix.c 28 Mar 2005 17:53:45 -0000
@@ -1322,7 +1322,7 @@ delete_file (gfc_unit * u)
return 1;
}
- return unlink (path);
+ return remove (path);
}
- Tobi