gcc-3.2 build problem in the java area

Andrew Haley aph@redhat.com
Fri Oct 11 05:11:00 GMT 2002

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.


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.


More information about the Java mailing list