瀏覽代碼

fix uclibc compile

Waldemar Brodkorb 11 年之前
父節點
當前提交
e68aff9830
共有 2 個文件被更改,包括 17 次插入1 次删除
  1. 1 1
      package/libnl/Makefile
  2. 16 0
      package/libnl/patches/patch-lib_addr_c

+ 1 - 1
package/libnl/Makefile

@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		libnl
 PKG_VERSION:=		3.2.22
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_MD5SUM:=		2e1c889494d274aca24ce5f6a748e66e
 PKG_DESCR:=		Netlink library
 PKG_SECTION:=		libs

+ 16 - 0
package/libnl/patches/patch-lib_addr_c

@@ -0,0 +1,16 @@
+--- libnl-3.2.22.orig/lib/addr.c	2013-04-05 10:35:44.000000000 +0200
++++ libnl-3.2.22/lib/addr.c	2013-09-26 11:13:50.000000000 +0200
+@@ -33,6 +33,13 @@
+ #include <netlink/addr.h>
+ #include <linux/socket.h>
+ 
++#ifndef PF_RDS
++#define PF_RDS		21
++#endif
++#ifndef AF_RDS
++#define AF_RDS		PF_RDS
++#endif
++
+ /* All this DECnet stuff is stolen from iproute2, thanks to whoever wrote
+  * this, probably Alexey. */
+ static inline uint16_t dn_ntohs(uint16_t addr)