mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 18:55:09 +03:00
missing.h: define IFA_FLAGS if it is missing
This commit is contained in:
parent
5d84c44a97
commit
34f7b9f98f
@ -334,7 +334,8 @@ AC_CHECK_DECLS([IFLA_INET6_ADDR_GEN_MODE,
|
||||
IFLA_IPTUN_6RD_RELAY_PREFIXLEN,
|
||||
IFLA_BRIDGE_VLAN_INFO,
|
||||
IFLA_BRPORT_UNICAST_FLOOD,
|
||||
NDA_IFINDEX],
|
||||
NDA_IFINDEX,
|
||||
IFA_FLAGS],
|
||||
[], [], [[
|
||||
#include <inttypes.h>
|
||||
#include <netinet/in.h>
|
||||
@ -345,6 +346,7 @@ AC_CHECK_DECLS([IFLA_INET6_ADDR_GEN_MODE,
|
||||
#include <linux/if_tunnel.h>
|
||||
#include <linux/if_link.h>
|
||||
#include <linux/if_bridge.h>
|
||||
#include <linux/if_addr.h>
|
||||
#include <linux/neighbour.h>
|
||||
]])
|
||||
|
||||
|
@ -859,6 +859,10 @@ static inline int setns(int fd, int nstype) {
|
||||
#define LOOPBACK_IFINDEX 1
|
||||
#endif
|
||||
|
||||
#if !HAVE_DECL_IFA_FLAGS
|
||||
#define IFA_FLAGS 8
|
||||
#endif
|
||||
|
||||
#ifndef MAX_AUDIT_MESSAGE_LENGTH
|
||||
#define MAX_AUDIT_MESSAGE_LENGTH 8970
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user