FreeBSD build fixes.

This commit is contained in:
Gleb Popov 2022-11-14 21:03:22 +03:00
parent 018058ea35
commit 525e7aa734
2 changed files with 6 additions and 2 deletions

View file

@ -31,6 +31,7 @@
#include <sys/ioctl.h>
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <netinet/in.h>
#include <net/if.h>
#include <ctype.h>
@ -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");

View file

@ -46,6 +46,9 @@
#include <module-rtp/sap.h>
#include <module-rtp/rtp.h>
#ifdef __FreeBSD__
#define ifr_ifindex ifr_index
#endif
/** \page page_module_rtp_source PipeWire Module: RTP source
*