getifaddrs: Fix building on systems without IFF_SLAVE.
This commit is contained in:
parent
582dd80f3b
commit
67fd1fe45a
23
getifaddr.c
23
getifaddr.c
@ -44,18 +44,21 @@
|
||||
|
||||
#include "config.h"
|
||||
#if HAVE_GETIFADDRS
|
||||
#include <ifaddrs.h>
|
||||
#ifdef __linux__
|
||||
#ifndef AF_LINK
|
||||
#define AF_LINK AF_INET
|
||||
#endif
|
||||
#else
|
||||
#include <net/if_dl.h>
|
||||
#endif
|
||||
# include <ifaddrs.h>
|
||||
# ifdef __linux__
|
||||
# ifndef AF_LINK
|
||||
# define AF_LINK AF_INET
|
||||
# endif
|
||||
# else
|
||||
# include <net/if_dl.h>
|
||||
# endif
|
||||
# ifndef IFF_SLAVE
|
||||
# define IFF_SLAVE 0
|
||||
# endif
|
||||
#endif
|
||||
#ifdef HAVE_NETLINK
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <linux/netlink.h>
|
||||
# include <linux/rtnetlink.h>
|
||||
# include <linux/netlink.h>
|
||||
#endif
|
||||
#include "upnpglobalvars.h"
|
||||
#include "getifaddr.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user