[PATCH] Workaround compile error on networking/libiproute/iplink.c

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Mon Jul 22 21:52:07 UTC 2013


IFLA_VLAN_PROTOCOL define was introduced with commit
a7ecbed56bb620a0e8cd79372886d0fdfeb362c8.  gcc 4.8.1 complains.

  CC      networking/libiproute/iplink.o
networking/libiproute/iplink.c:26:33: error: expected identifier before numeric constant
 #define IFLA_VLAN_PROTOCOL      5
                                 ^
make[1]: *** [networking/libiproute/iplink.o] Error 1

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com>
---
 networking/libiproute/iplink.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index 45cad71..91ac196 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -21,10 +21,12 @@
 #define VLAN_FLAG_LOOSE_BINDING 0x4
 #undef  VLAN_FLAG_MVRP
 #define VLAN_FLAG_MVRP          0x8
+
+#include "ip_common.h"  /* #include "libbb.h" is inside */
+
 #undef  IFLA_VLAN_PROTOCOL
 #define IFLA_VLAN_PROTOCOL      5

-#include "ip_common.h"  /* #include "libbb.h" is inside */
 #include "rt_names.h"
 #include "utils.h"

-- 
1.8.3.2



More information about the busybox mailing list