mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	FreeBSD build fixes.
This commit is contained in:
		
							parent
							
								
									018058ea35
								
							
						
					
					
						commit
						525e7aa734
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -31,6 +31,7 @@
 | 
				
			||||||
#include <sys/ioctl.h>
 | 
					#include <sys/ioctl.h>
 | 
				
			||||||
#include <arpa/inet.h>
 | 
					#include <arpa/inet.h>
 | 
				
			||||||
#include <netinet/ip.h>
 | 
					#include <netinet/ip.h>
 | 
				
			||||||
 | 
					#include <netinet/in.h>
 | 
				
			||||||
#include <net/if.h>
 | 
					#include <net/if.h>
 | 
				
			||||||
#include <ctype.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)
 | 
							if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, &val, sizeof(val)) < 0)
 | 
				
			||||||
			pw_log_warn("setsockopt(IP_MULTICAST_TTL) failed: %m");
 | 
								pw_log_warn("setsockopt(IP_MULTICAST_TTL) failed: %m");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					#ifdef SO_PRIORITY
 | 
				
			||||||
	val = 6;
 | 
						val = 6;
 | 
				
			||||||
	if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, &val, sizeof(val)) < 0)
 | 
						if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, &val, sizeof(val)) < 0)
 | 
				
			||||||
		pw_log_warn("setsockopt(SO_PRIORITY) failed: %m");
 | 
							pw_log_warn("setsockopt(SO_PRIORITY) failed: %m");
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	val = IPTOS_LOWDELAY;
 | 
						val = IPTOS_LOWDELAY;
 | 
				
			||||||
	if (setsockopt(fd, IPPROTO_IP, IP_TOS, &val, sizeof(val)) < 0)
 | 
						if (setsockopt(fd, IPPROTO_IP, IP_TOS, &val, sizeof(val)) < 0)
 | 
				
			||||||
		pw_log_warn("setsockopt(IP_TOS) failed: %m");
 | 
							pw_log_warn("setsockopt(IP_TOS) failed: %m");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,6 +46,9 @@
 | 
				
			||||||
#include <module-rtp/sap.h>
 | 
					#include <module-rtp/sap.h>
 | 
				
			||||||
#include <module-rtp/rtp.h>
 | 
					#include <module-rtp/rtp.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef __FreeBSD__
 | 
				
			||||||
 | 
					#define ifr_ifindex ifr_index
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** \page page_module_rtp_source PipeWire Module: RTP source
 | 
					/** \page page_module_rtp_source PipeWire Module: RTP source
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue