udp: Fix compilation on Linux
This commit is contained in:
parent
d177c5d885
commit
681899c9fb
1 changed files with 4 additions and 8 deletions
12
src/udp.c
12
src/udp.c
|
@ -30,14 +30,10 @@
|
|||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#if defined(PLATFORM_LINUX)
|
||||
#include <linux/netdevice.h>
|
||||
#elif defined(PLATFORM_FREEBSD)
|
||||
# include <net/if.h>
|
||||
# ifndef IPV6_ADD_MEMBERSHIP
|
||||
# define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
|
||||
# define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
|
||||
# endif
|
||||
#include <net/if.h>
|
||||
#ifndef IPV6_ADD_MEMBERSHIP
|
||||
#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
|
||||
#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
|
||||
#endif
|
||||
|
||||
extern int tcp_preferred_address_family;
|
||||
|
|
Loading…
Add table
Reference in a new issue