kumquat-buildroot/package/libnl/0001-Revert-route-remove-unnecessary-include-of-private-lin.patch
Gustavo Zacarias bbb1e6cadf libnl: add patch to fix bmon build breakage
Revert a 3.2.26 patch that breaks the bmon build (among possibly
others). Fixes:
http://autobuild.buildroot.net/results/296/296bcaf4fd1fadcab71881d6d00a8763bfa91a41/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-18 15:34:08 +02:00

45 lines
1.2 KiB
Diff

From 61310ce3f2b6c5c21be8c788848f083e4c58d138 Mon Sep 17 00:00:00 2001
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date: Fri, 17 Apr 2015 07:20:48 -0300
Subject: [PATCH] Revert "route: remove unnecessary include of private
linux/if.h"
It breaks rtnl_link_get_flags() checks against IFF_* defines that aren't
defined.
This reverts commit 50a76998ac36ace3716d3c979b352fac73cfc80a.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
include/netlink/route/link.h | 1 +
src/nl-link-set.c | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/netlink/route/link.h b/include/netlink/route/link.h
index 8f74f42..a7aa88b 100644
--- a/include/netlink/route/link.h
+++ b/include/netlink/route/link.h
@@ -15,6 +15,7 @@
#include <netlink/netlink.h>
#include <netlink/cache.h>
#include <netlink/addr.h>
+#include <linux/if.h>
#include <sys/types.h>
#ifdef __cplusplus
diff --git a/src/nl-link-set.c b/src/nl-link-set.c
index 6a6bac8..bbb60f9 100644
--- a/src/nl-link-set.c
+++ b/src/nl-link-set.c
@@ -9,7 +9,6 @@
* Copyright (c) 2003-2010 Thomas Graf <tgraf@suug.ch>
*/
-#include <linux/if.h>
#include <netlink/cli/utils.h>
#include <netlink/cli/link.h>
--
2.0.5