diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-07 21:07:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-07 21:09:18 +0200 |
commit | 34f7b9f98facbf3431c6849622104cee992f2b7d (patch) | |
tree | 55044760a8c9ad4cb02c7fd9a5c50d6ca0ce3ab5 | |
parent | 5d84c44a976794625889f3d24e57835d5de234e3 (diff) |
missing.h: define IFA_FLAGS if it is missing
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | src/shared/missing.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 29111f5fee..904ac15ceb 100644 --- a/configure.ac +++ b/configure.ac @@ -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> ]]) diff --git a/src/shared/missing.h b/src/shared/missing.h index 21c6afc56c..ae8405350d 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.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 |