[Mono-devel-list] Non GCC compiler patch - ip_mreq & HP's headers

Bernie Solomon bernard at ugsolutions.com
Wed May 21 17:46:03 EDT 2003


I looked at this a little more. So far the best I have come up with is have
_XOPEN_SOURCE_EXTENDED defined for all compiles as it is needed in other
files and in socket-io.c have something like:

#ifdef __hpux // or some equivalent
#undef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE
#endif

before the appropriate includes so that ip_mreq comes out (it is under an
ifndef _XOPEN_SOURCE_EXTENDED in /usr/include/netinet/in.h). Ugly but at
least the code is compiled in this way.

Bernie Solomon
----- Original Message ----- 
From: "Dick Porter" <dick at ximian.com>
To: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, May 20, 2003 3:52 AM
Subject: Re: [Mono-devel-list] Non GCC compiler patch


> On Tue, 2003-05-20 at 00:57, Bernie Solomon wrote:
> >  main one I am not sure is done properly is metadata/socket-io.c
> > because ip_mreq is guarded strangely in the system headers so
> > difficult to get at. I have just avoided that option using the __hpux
> > symbol which is probably not ideal.
>
> Figuring out how to get at struct ip_mreq would be nice.  I seem to
> remember awkwardness in hpux system headers in ORBit though, and the
> hoops we had to jump through to get it to work on hpux and osf/1 at the
> same time...
>
> - Dick
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>




More information about the Mono-devel-list mailing list