This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc-3.2 build problem in the java area


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]