Fix building module-netjack2 on FreeBSD

This commit is contained in:
Gleb Popov 2024-02-10 18:08:34 +03:00 committed by Wim Taymans
parent c972405cfe
commit 86ae379e55

View file

@ -37,6 +37,10 @@
#include "module-netjack2/peer.c" #include "module-netjack2/peer.c"
#ifdef __FreeBSD__
#define ifr_ifindex ifr_index
#endif
#ifndef IPTOS_DSCP #ifndef IPTOS_DSCP
#define IPTOS_DSCP_MASK 0xfc #define IPTOS_DSCP_MASK 0xfc
#define IPTOS_DSCP(x) ((x) & IPTOS_DSCP_MASK) #define IPTOS_DSCP(x) ((x) & IPTOS_DSCP_MASK)