This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Work around dummy AF_INET6 definition on Tru64 UNIX V4.0F
* Arnaud Charlet, 2009-02-23 :
> > /vol/gccsrc/obj/gcc-4.4.0-20090218/4.0f-gcc/./gcc/xgcc -B/vol/gccsrc/obj/gcc-4.4.0-20090218/4.0f-gcc/./gcc/ -B/vol/gcc/alpha-dec-osf4.0f/bin/ -B/vol/gcc/alpha-dec-osf4.0f/lib/ -isystem /vol/gcc/alpha-dec-osf4.0f/include -isystem /vol/gcc/alpha-dec-osf4.0f/sys-include -c -g -O2 -pthread -W -Wall -gnatpg g-soccon.ads -o g-soccon.o
> > s-oscons.ads:47:01: (style) multiple blank lines
> > s-oscons.ads:52:01: (style) multiple blank lines
> > s-oscons.ads:57:01: (style) multiple blank lines
These warnings are suspicious and unexpected...
> > +/**
> > + ** Tru64 UNIX V4.0F defines AF_INET6 without IPv6 support, specificially
> > + ** without struct sockaddr_in6. We use _SS_MAXSIZE (used for the definition
> > + ** of struct sockaddr_storage on Tru64 UNIX V5.1) to detect this.
> > + **/
> > +#if defined(__osf__) && !defined(_SS_MAXSIZE)
> > +# undef AF_INET6
> > +#endif
Looks reasonable to me.
--
Thomas Quinot, Ph.D. ** quinot@adacore.com ** Senior Software Engineer
AdaCore -- Paris, France -- New York, USA