libnl: include limits.h to fix build failure
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 10 May 2010 21:39:51 +0000 (23:39 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 11 May 2010 07:02:07 +0000 (09:02 +0200)
Fixes the ULONG_MAX definition problem:

In file included from cache.c:43:
../include/netlink-local.h: In function '__str2type':../include/netlink-local.h:218: error: 'ULONG_MAX' undeclared (first use in this function)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/libnl/libnl-1.1-netlink-local-fix.patch [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index f305fd1bfabf061a7d4e31ee210d187e291d46d8..03eed655c1729a25865e23a6c78da418048ef2c7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -3,7 +3,7 @@
        Fixes all over the tree.
 
        Updated/fixed packages: busybox, customize, hal, hostapd,
-       less, libxcb, mplayer, netplug, pciutils,
+       less, libnl, libxcb, mplayer, netplug, pciutils,
        xdriver_xf86-video-openchrome, usb_modeswitch, usbutils,
        wpa_supplicant, xapp_bdftopcf, xapp_mkfontdir,
        xfont_encodings, xlib_libX11, xlib_libXfont, xlib_xtrans,
diff --git a/package/libnl/libnl-1.1-netlink-local-fix.patch b/package/libnl/libnl-1.1-netlink-local-fix.patch
new file mode 100644 (file)
index 0000000..79cda28
--- /dev/null
@@ -0,0 +1,19 @@
+Fixes the ULONG_MAX definition problem:
+
+In file included from cache.c:43:
+../include/netlink-local.h: In function '__str2type':../include/netlink-local.h:218: error: 'ULONG_MAX' undeclared (first use in this function)
+
+Patch borrowed from OpenEmbedded, recipes/libnl/files/netlink-local-fix.patch.
+
+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>