[Mono-devel-list] Non GCC compiler patch - ip_mreq & HP's headers
Dick Porter
dick at ximian.com
Thu May 22 11:39:38 EDT 2003
On Wed, 2003-05-21 at 22:46, Bernie Solomon wrote:
> 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.
Yuck.
Do you know offhand which other places require the _EXTENDED define? Is
it possible to have configure.in give a set of preprocessor flags that
do the right thing for hpux everywhere? If not then we'll just have to
live with that workaround in socket-io.c.
Apart from this struct ip_mreq business, the changes to io-layer,
monitor.c and process.c look fine to me. The other changes will have to
be reviewed by the owners of those bits of code.
- Dick
More information about the Mono-devel-list
mailing list