diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-04-30 11:27:24 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-04-30 12:00:35 +0200 |
commit | c80554be16f51b908229ed345df81b760ffd4dd4 (patch) | |
tree | 954517dcfe510c16038d36366814802c0cd349f4 | |
parent | 2a410be36f5380e5d986dd3bccf20466d3b5930b (diff) |
Explicitly include linux/if.h to fix cross-compile error
When compiling bmon with the Linaro 2014.01 ARM toolchain
(gcc-linaro-arm-linux-gnueabihf-4.8-2014.01_linux) the following compile error occurs:
in_netlink.c: In function ‘do_link’:
in_netlink.c:688:53: error: ‘IFF_UP’ undeclared (first use in this function)
Fix it by explicitly including linux/if.h, where IFF_UP is defined.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | src/in_netlink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/in_netlink.c b/src/in_netlink.c index 7762592..8dd74fe 100644 --- a/src/in_netlink.c +++ b/src/in_netlink.c @@ -37,6 +37,8 @@ static int c_notc = 0; static struct element_group *grp; static struct bmon_module netlink_ops; +#include <linux/if.h> + #include <netlink/netlink.h> #include <netlink/cache.h> #include <netlink/utils.h> |