[Patch, libgFortran] Fix MinGW64 compile warning

Tobias Burnus burnus@net-b.de
Fri Mar 25 17:14:00 GMT 2011


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?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win-lfs.diff
Type: text/x-patch
Size: 690 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110325/38b8c713/attachment.bin>


More information about the Gcc-patches mailing list