libnl: Fix compilation with new glibc.

This commit is contained in:
Michael Tremer
2012-08-06 21:59:53 +02:00
parent af4bfa7995
commit 4d156ef691
2 changed files with 12 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ $(subst %,%_MD5,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/libnl-1.1-ULONG_MAX.patch
cd $(DIR_APP) && ln -s /usr/src/linux/include/linux/if_vlan.h \
include/linux/if_vlan.h
cd $(DIR_APP) && ln -s /usr/src/linux/include/linux/netfilter/nf_conntrack_common.h \

View File

@@ -0,0 +1,11 @@
--- libnl-1.1/include/netlink-local.h.orig 2008-06-08 19:09:20.000000000 +0200
+++ libnl-1.1/include/netlink-local.h 2008-06-08 19:09:33.000000000 +0200
@@ -26,6 +26,7 @@
#include <sys/socket.h>
#include <inttypes.h>
#include <assert.h>
+#include <limits.h>
#include <arpa/inet.h>
#include <netdb.h>