X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnetlink.c;h=3cd91d8ae74cadf18520c78bc09175b5b32a7723;hb=c8ec3924c92ad3ca15229e8e923eaece64221337;hp=6f9f593cbeefdf13a006c07caf6f7f79ce60f300;hpb=35eb5185beb91eee44d41ed9149cee1fe5405002;p=collectd.git diff --git a/src/netlink.c b/src/netlink.c index 6f9f593c..3cd91d8a 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -25,12 +25,17 @@ #include #include -#include #include #include #include -#include +#if HAVE_LIBNETLINK_H +# include +#elif HAVE_IPROUTE_LIBNETLINK_H +# include +#elif HAVE_LINUX_LIBNETLINK_H +# include +#endif typedef struct ir_ignorelist_s { @@ -509,12 +514,6 @@ static int ir_init (void) return (-1); } - if (ll_init_map (&rth) != 0) - { - ERROR ("netlink plugin: ir_read: ll_init_map failed."); - return (-1); - } - return (0); } /* int ir_init */