Fix building module-netjack2 on FreeBSD

This commit is contained in:
Gleb Popov 2024-02-10 18:08:34 +03:00
parent 84699032be
commit 4ea02f5c80

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)