mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
Move the ifr_ifindex FreeBSD definition into a header file to reduce code duplication
This commit is contained in:
parent
3f31935cac
commit
aafe815556
6 changed files with 4 additions and 17 deletions
|
|
@ -8,6 +8,10 @@
|
|||
#include <net/if.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#define ifr_ifindex ifr_index
|
||||
#endif
|
||||
|
||||
static inline int pw_net_parse_address(const char *address, uint16_t port,
|
||||
struct sockaddr_storage *addr, socklen_t *len)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue