diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-11-17 16:33:24 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-11-17 16:33:24 +0000 |
commit | 53a7c4b2a6e41a0c6784029f002564f0f93e1aeb (patch) | |
tree | 3e51a047223ef606a8f0ef852491b1c53dc76a25 /ace | |
parent | 93f34e2b848069855b348ade26cf1f958658b245 (diff) | |
download | ATCD-53a7c4b2a6e41a0c6784029f002564f0f93e1aeb.tar.gz |
Even if ACE_HAS_IP_MULTICAST is not defined, if IP_ADD_MEMBERSHIP is defined, assume that the ip_mreq struct is also defined (presumably in netinet/in.h).
Diffstat (limited to 'ace')
-rw-r--r-- | ace/OS.h | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -4078,15 +4078,18 @@ struct flock # endif /* ! VXWORKS */ # endif /* ACE_LACKS_FILELOCKS */ -# if !defined (ACE_HAS_IP_MULTICAST) -struct ip_mreq -{ - struct in_addr imr_multiaddr; - // IP multicast address of group - struct in_addr imr_interface; - // local IP address of interface -}; -# endif /* ACE_HAS_IP_MULTICAST */ +# if !defined (ACE_HAS_IP_MULTICAST) && !defined (IP_ADD_MEMBERSHIP) + // Even if ACE_HAS_IP_MULTICAST is not defined, if IP_ADD_MEMBERSHIP + // is defined, assume that the ip_mreq struct is also defined + // (presumably in netinet/in.h). + struct ip_mreq + { + struct in_addr imr_multiaddr; + // IP multicast address of group + struct in_addr imr_interface; + // local IP address of interface + }; +# endif /* ! ACE_HAS_IP_MULTICAST && ! IP_ADD_MEMBERSHIP */ # if !defined (ACE_HAS_STRBUF_T) struct strbuf |