diff --git a/src/modules/module-rtp-sink.c b/src/modules/module-rtp-sink.c index 1adaad823..014446d5c 100644 --- a/src/modules/module-rtp-sink.c +++ b/src/modules/module-rtp-sink.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -439,11 +440,11 @@ static int make_socket(struct sockaddr_storage *src, socklen_t src_len, if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, &val, sizeof(val)) < 0) pw_log_warn("setsockopt(IP_MULTICAST_TTL) failed: %m"); } - +#ifdef SO_PRIORITY val = 6; if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, &val, sizeof(val)) < 0) pw_log_warn("setsockopt(SO_PRIORITY) failed: %m"); - +#endif val = IPTOS_LOWDELAY; if (setsockopt(fd, IPPROTO_IP, IP_TOS, &val, sizeof(val)) < 0) pw_log_warn("setsockopt(IP_TOS) failed: %m"); diff --git a/src/modules/module-rtp-source.c b/src/modules/module-rtp-source.c index 601ad5754..503bfc196 100644 --- a/src/modules/module-rtp-source.c +++ b/src/modules/module-rtp-source.c @@ -46,6 +46,9 @@ #include #include +#ifdef __FreeBSD__ +#define ifr_ifindex ifr_index +#endif /** \page page_module_rtp_source PipeWire Module: RTP source *