Index: busybox-1.23.1/networking/libiproute/iplink.c
===================================================================
--- busybox-1.23.1.orig/networking/libiproute/iplink.c
+++ busybox-1.23.1/networking/libiproute/iplink.c
@@ -473,6 +473,21 @@ static int do_add_or_delete(char **argv,
 	if (type_str) {
 		struct rtattr *linkinfo = NLMSG_TAIL(&req.n);
 
+#ifndef IFLA_LINKINFO
+	#define IFLA_LINKINFO 18
+#endif
+#ifndef IFLA_INFO_KIND
+	#define IFLA_INFO_KIND 1
+#endif
+
+#if defined(__nios2__) || defined(__sparc__)
+    #ifndef IFLA_LINKINFO
+        #define IFLA_LINKINFO 18
+    #endif
+    #ifndef IFLA_INFO_KIND
+        #define IFLA_INFO_KIND 1
+    #endif
+#endif
 		addattr_l(&req.n, sizeof(req), IFLA_LINKINFO, NULL, 0);
 		addattr_l(&req.n, sizeof(req), IFLA_INFO_KIND, type_str,
 				strlen(type_str));
