[Ada] Don't unconditionally define _LARGEFILE_SOURCE
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Fri Aug 1 12:51:00 GMT 2014
This patch
2014-08-01 Pascal Obry <obry@adacore.com>
* cstreams.c: Only enable large file support on know supported
platforms. Add missing defines/includes.
broke Ada bootstrap on Solaris:
/vol/gcc/src/hg/trunk/local/gcc/ada/cstreams.c:34:0: error: "_LARGEFILE_SOURCE" redefined [-Werror]
#define _LARGEFILE_SOURCE
^
<built-in>: note: this is the location of the previous definition
Fixed as follows, i386-pc-solaris2.10 bootstrap is past the failure now.
Ok for mainline?
Rainer
2014-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gcc/ada:
* cstreams.c (_LARGEFILE_SOURCE): Guard definition.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2-ada-cstreams.patch
Type: text/x-patch
Size: 362 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140801/8bc95f20/attachment.bin>
-------------- next part --------------
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list