[Mono-devel-list] Non GCC compiler patch - ip_mreq & HP'sheaders
dick at ximian.com
Tue Jun 10 13:01:07 EDT 2003
On Thu, 2003-05-22 at 17:17, Bernie Solomon wrote:
> io-layer/daemon-messages.c needs _XOPEN_SOURCE_EXTENDED for cmsghdr so it
> seems impossible to have this compile and socket-io.c at the same time - but
> this is the only file that needs it. So an alternative which feels slightly
> less yucky is to have _XOPEN_SOURCE defined everywhere by configure
> #ifdef __hpux // is this the right symbol? or should it be something defined
> by configure.
> #define _XOPEN_SOURCE_EXTENDED
> at the top of daemon-messages.c to get cmsghdr.
I've made configure check for both struct ip_mreqn and struct ip_mreq,
and if it finds neither then the code in socket-io.c is ifdeffed out.
I want to set _XOPEN_SOURCE globally for hpux builds, and the place to
do this is in the platform-specific sections at the top of configure.in.
Theres a default section that says:
AC_MSG_WARN([*** Please add $host to configure.in checks!])
which should be triggered on hpux, so do you have a set of defines,
linker options etc that are needed for building threaded code on hpux?
When we have the hpux stanza, then I'll make it add _XOPEN_SOURCE and
add the _EXTENDED define in daemon.messages.c.
More information about the Mono-devel-list