Signed-off-by: Thomas Graf <tg...@suug.ch>
---
 src/dutil_linux.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/dutil_linux.c b/src/dutil_linux.c
index baf5ae1..bf6d13f 100644
--- a/src/dutil_linux.c
+++ b/src/dutil_linux.c
@@ -64,6 +64,11 @@
 
 #ifdef HAVE_LIBNL3
 #define RTNL_LINK_NOT_FOUND 0
+
+/* Some distributions seem to never have shipped the vlan header with libnl1 */
+#include <netlink/route/link/vlan.h>
+#else
+extern int rtnl_link_vlan_get_id(struct rtnl_link *link);
 #endif
 
 static struct nl_cache *__rtnl_link_alloc_cache(struct nl_sock *sk)
@@ -94,9 +99,6 @@ static struct nl_cache *__rtnl_addr_alloc_cache(struct 
nl_sock *sk)
     return cache;
 }
 
-/* For some reason, the headers for libnl vlan functions aren't installed */
-extern int rtnl_link_vlan_get_id(struct rtnl_link *link);
-
 /*
  * Executing external programs
  */
-- 
1.7.7.6

_______________________________________________
netcf-devel mailing list
netcf-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/netcf-devel

Reply via email to