Skip to content

Commit f48492d

Browse files
ntocmassiot
authored andcommitted
upipe_udp: fix compilation on macOS 15
1 parent e71e115 commit f48492d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/upipe-modules/upipe_udp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ int upipe_udp_open_socket(struct upipe *upipe, const char *_uri, int ttl,
342342
int family;
343343
socklen_t sockaddr_len;
344344
in_addr_t miface = 0;
345-
#if !defined(__APPLE__) && !defined(__native_client__)
345+
#ifdef SO_BINDTODEVICE
346346
char *ifname = NULL;
347347
#endif
348348

@@ -429,7 +429,7 @@ int upipe_udp_open_socket(struct upipe *upipe, const char *_uri, int ttl,
429429
char *option = config_stropt(ARG_OPTION("ifaddr="));
430430
if_addr = inet_addr(option);
431431
free( option );
432-
#if !defined(__APPLE__) && !defined(__native_client__)
432+
#ifdef SO_BINDTODEVICE
433433
} else if ( IS_OPTION("ifname=") ) {
434434
ifname = config_stropt( ARG_OPTION("ifname=") );
435435
if (strlen(ifname) >= IFNAMSIZ) {

0 commit comments

Comments
 (0)