This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcc-3.2 build problem in the java area
- From: Andrew Haley <aph at redhat dot com>
- To: Russ Allbery <rra at stanford dot edu>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 11 Oct 2002 13:11:59 +0100 (BST)
- Subject: Re: gcc-3.2 build problem in the java area
- References: <Pine.GSO.4.21.0210101047230.21396-100000@obrien.cc.rochester.edu><15781.38525.112250.301901@cuddles.cambridge.redhat.com><ylk7kphf29.fsf@windlord.stanford.edu>
Russ Allbery writes:
> Andrew Haley <aph@redhat.com> writes:
>
> > You should find this in /usr/include/netdb.h:
>
> > #define MAXHOSTNAMELEN 256
>
> > Is it there?
>
> Solaris only defines MAXHOSTNAMELEN if:
>
> #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
>
> Since this is C++, I'm guessing that it's including the headers in a more
> strictly standard-conforming mode, which means that this #define is
> omitted.
Thanks.
Do you happen to know what people are supposed to do on Solaris if
they wish to get around this problem?
I'm sure I could do something evil like `#define __EXTENSIONS__' but I
hope that there is a more civilized way to solve this problem.
Andrew.