Fixed compile errors for targets that do not support IPV6
Signed-off-by: Thijs Sassen <thijs.sassen@adlinktech.com>
This commit is contained in:
parent
f139dbcd5e
commit
79c086868f
3 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,7 @@ int ddsi_eth_enumerate_interfaces (ddsi_tran_factory_t fact, enum transport_sele
|
|||
int afs[] = { AF_INET, DDSRT_AF_TERM };
|
||||
|
||||
(void)fact;
|
||||
(void)transport_selector;
|
||||
|
||||
#if DDSRT_HAVE_IPV6
|
||||
if (transport_selector == TRANS_TCP6 ||
|
||||
|
|
|
@ -42,7 +42,9 @@
|
|||
union addr {
|
||||
struct sockaddr a;
|
||||
struct sockaddr_in a4;
|
||||
#if DDSRT_HAVE_IPV6
|
||||
struct sockaddr_in6 a6;
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef struct ddsi_tcp_conn {
|
||||
|
|
|
@ -30,7 +30,9 @@ union addr {
|
|||
struct sockaddr_storage x;
|
||||
struct sockaddr a;
|
||||
struct sockaddr_in a4;
|
||||
#if DDSRT_HAVE_IPV6
|
||||
struct sockaddr_in6 a6;
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef struct ddsi_udp_conn {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue