libnl: fix compilation with new toolchain
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 18 Jun 2009 11:32:00 +0000 (15:32 +0400)
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 18 Jun 2009 11:38:10 +0000 (15:38 +0400)
netlink-local.h demands limits.h to define several constants. Include it.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
recipes/libnl/files/netlink-local-fix.patch [new file with mode: 0644]
recipes/libnl/libnl_1.1.bb

diff --git a/recipes/libnl/files/netlink-local-fix.patch b/recipes/libnl/files/netlink-local-fix.patch
new file mode 100644 (file)
index 0000000..51c6736
--- /dev/null
@@ -0,0 +1,12 @@
+Index: libnl-1.1/include/netlink-local.h
+===================================================================
+--- libnl-1.1.orig/include/netlink-local.h     2009-06-18 15:28:32.614209645 +0400
++++ libnl-1.1/include/netlink-local.h  2009-06-18 15:28:44.094190518 +0400
+@@ -26,6 +26,7 @@
+ #include <sys/socket.h>
+ #include <inttypes.h>
+ #include <assert.h>
++#include <limits.h>
+ #include <arpa/inet.h>
+ #include <netdb.h>
index 5f2d6f1..3895ec5 100644 (file)
@@ -13,6 +13,7 @@ SRC_URI = "\
   file://local-includes.patch;patch=1 \
   file://fix-includes.patch;patch=1 \
   file://respect-ldflags.patch;patch=1 \
+  file://netlink-local-fix.patch;patch=1 \
 "
 
 do_stage () {