From 4d156ef691138d5da786db9507e1078882cdece6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 6 Aug 2012 21:59:53 +0200 Subject: [PATCH] libnl: Fix compilation with new glibc. --- lfs/libnl | 1 + src/patches/libnl-1.1-ULONG_MAX.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 src/patches/libnl-1.1-ULONG_MAX.patch diff --git a/lfs/libnl b/lfs/libnl index d1747752ee..ea557d9132 100644 --- a/lfs/libnl +++ b/lfs/libnl @@ -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 \ diff --git a/src/patches/libnl-1.1-ULONG_MAX.patch b/src/patches/libnl-1.1-ULONG_MAX.patch new file mode 100644 index 0000000000..ca3dd40131 --- /dev/null +++ b/src/patches/libnl-1.1-ULONG_MAX.patch @@ -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 + #include + #include ++#include + + #include + #include + -- 2.39.5