From 4288440742e51d2e2d05243cf2d23b7c9e1e6fd2 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 4 Sep 2007 10:32:13 +0200 Subject: [PATCH] netlink plugin: Use the defines to determine where the `libnetlink.h' is. --- src/netlink.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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 */ -- 2.30.2