File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,13 @@ typedef struct tport_nat_s tport_nat_t;
71
71
#include <sofia-sip/rbtree.h>
72
72
73
73
#include "tport_internal.h"
74
+ #if defined (__linux__ )
74
75
#include <ifaddrs.h>
75
76
#if HAVE_NET_IF_H
76
77
#include <net/if.h>
77
78
#endif
78
79
#include <sys/ioctl.h>
80
+ #endif
79
81
80
82
#if HAVE_FUNC
81
83
#elif HAVE_FUNCTION
@@ -801,14 +803,15 @@ int tport_bind_socket(int socket,
801
803
}
802
804
}
803
805
#endif
804
-
806
+ #if defined( __linux__ )
805
807
if (tport_bind_socket_iface (socket , su , ai ) < 0 ) {
806
808
return -1 ;
807
809
}
808
-
810
+ #endif
809
811
return 0 ;
810
812
}
811
813
814
+ #if defined(__linux__ )
812
815
int tport_bind_socket_iface (int s ,
813
816
su_sockaddr_t * su ,
814
817
su_addrinfo_t * ai )
@@ -849,7 +852,7 @@ int tport_bind_socket_iface(int s,
849
852
/* Technically it's not a "failure" */
850
853
return 0 ;
851
854
}
852
-
855
+ #endif
853
856
854
857
/** Indicate stack that a transport has been updated */
855
858
void tport_has_been_updated (tport_t * self )
Original file line number Diff line number Diff line change @@ -440,9 +440,11 @@ void tport_base_timer(tport_t *self, su_time_t now);
440
440
int tport_bind_socket (int socket ,
441
441
su_addrinfo_t * ai ,
442
442
char const * * return_culprit );
443
+ #if defined(__linux__ )
443
444
int tport_bind_socket_iface (int s ,
444
445
su_sockaddr_t * su ,
445
446
su_addrinfo_t * ai );
447
+ #endif
446
448
void tport_close (tport_t * self );
447
449
int tport_shutdown0 (tport_t * self , int how );
448
450
You can’t perform that action at this time.
0 commit comments