diff options
-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 |