]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
libnl: Fix compilation with new glibc.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Aug 2012 19:59:53 +0000 (21:59 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Aug 2012 19:59:53 +0000 (21:59 +0200)
lfs/libnl
src/patches/libnl-1.1-ULONG_MAX.patch [new file with mode: 0644]

index d1747752eeb3766c1bf53905ef509fc17eac5adf..ea557d9132f5c2b6dace8842d514f715ae4e0cd1 100644 (file)
--- 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 (file)
index 0000000..ca3dd40
--- /dev/null
@@ -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>
+