On Fri, Mar 25, 2011 at 19:10, Tobias Burnus <bur...@net-b.de> wrote: > The attached patch fixes a compiler warning on MinGW64 > > ../../../../../build/gcc/src/libgfortran/io/unix.c:51:0: warning: "lseek" > redefined [enabled by default] > > which is due to MinGW64 now supporting LFS. (Seemingly, using a similar > define as libgfortran.) The following patch should fix the issue. > > Thanks for Kai for suggestions and testing the patch on MinGW64. The goal is > that it also works with older MinGW64 and with 32bit MinGW, but that has not > been tested ... > > OK for the trunk?
Since the reason for adding the gfstat_t typedef was that on mingw we needed to use struct _stati64 instead of struct stat, and that justification now seems to be gone with this patch, please also remove gfstat_t and just use struct stat everywhere. Otherwise Ok. -- Janne Blomqvist