Commit c488481e authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

libnl: include limits.h to fix build failure



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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent c554cc2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+19 −0
Original line number Diff line number Diff line
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>