diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-05-10 23:39:51 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-05-11 09:02:07 +0200 |
commit | c488481e9caf7717f50d89b952a27cbcc6343639 (patch) | |
tree | 5b59526a3fbcdb7369aa00d588fef6a55b8e5a24 /package/libnl | |
parent | c554cc2a2e62e4c383a20270b34a8d9b933ca6f0 (diff) | |
download | buildroot-c488481e9caf7717f50d89b952a27cbcc6343639.tar.gz buildroot-c488481e9caf7717f50d89b952a27cbcc6343639.zip |
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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libnl')
-rw-r--r-- | package/libnl/libnl-1.1-netlink-local-fix.patch | 19 |
1 files changed, 19 insertions, 0 deletions
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 index 0000000000..79cda2850f --- /dev/null +++ b/package/libnl/libnl-1.1-netlink-local-fix.patch @@ -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> |