summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-17 16:33:24 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-17 16:33:24 +0000
commit53a7c4b2a6e41a0c6784029f002564f0f93e1aeb (patch)
tree3e51a047223ef606a8f0ef852491b1c53dc76a25 /ace
parent93f34e2b848069855b348ade26cf1f958658b245 (diff)
downloadATCD-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.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/ace/OS.h b/ace/OS.h
index 573cfd6371c..d828dd4800d 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -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