Commit d0540fca authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Juliusz Chroboczek

kernel_netlink.c: don't include <linux/if_bridge.h>

In order to address this, this patch removes the <linux/if_bridge.h>
inclusion, and instead defines BRCTL_GET_BRIDGES to the appropriate
value if it's not provided by the C library.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 194a5360
...@@ -39,10 +39,14 @@ THE SOFTWARE. ...@@ -39,10 +39,14 @@ THE SOFTWARE.
#include <sys/socket.h> #include <sys/socket.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <linux/if_bridge.h>
#include <linux/fib_rules.h> #include <linux/fib_rules.h>
#include <net/if_arp.h> #include <net/if_arp.h>
/* From <linux/if_bridge.h> */
#ifndef BRCTL_GET_BRIDGES
#define BRCTL_GET_BRIDGES 1
#endif
#if(__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 5) #if(__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 5)
#define RTA_TABLE 15 #define RTA_TABLE 15
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment