summaryrefslogtreecommitdiffstats
path: root/patches/libnl-1.1/libnl-1.1-undefined-ulong-max.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/libnl-1.1/libnl-1.1-undefined-ulong-max.diff')
-rw-r--r--patches/libnl-1.1/libnl-1.1-undefined-ulong-max.diff30
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/libnl-1.1/libnl-1.1-undefined-ulong-max.diff b/patches/libnl-1.1/libnl-1.1-undefined-ulong-max.diff
new file mode 100644
index 000000000..0d5309219
--- /dev/null
+++ b/patches/libnl-1.1/libnl-1.1-undefined-ulong-max.diff
@@ -0,0 +1,30 @@
+From: Robert Schwebel <r.schwebel@pengutronix.de>
+
+In file included from addr.c:28:
+../include/netlink-local.h: In function '__str2type':In file included from attr.c:12:
+../include/netlink-local.h: In function '__str2type':
+../include/netlink-local.h:218: error: 'ULONG_MAX' undeclared (first use in this function)
+
+This needs limits.h
+
+Patch is already in the upstream git at
+http://git.kernel.org/?p=libs/netlink/libnl.git
+
+Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
+
+---
+ include/netlink-local.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+Index: libnl-1.1/include/netlink-local.h
+===================================================================
+--- libnl-1.1.orig/include/netlink-local.h
++++ libnl-1.1/include/netlink-local.h
+@@ -26,6 +26,7 @@
+ #include <sys/socket.h>
+ #include <inttypes.h>
+ #include <assert.h>
++#include <limits.h>
+
+ #include <arpa/inet.h>
+ #include <netdb.h>