summaryrefslogtreecommitdiffstats
path: root/package/hal
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-12-16 16:28:11 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2009-12-16 16:29:02 +0100
commitb08f1d00e0391c9b134bc2e6851de1770a764cfe (patch)
treee108b7c49a3b3dc726b48d62388a05aaf30ae4f5 /package/hal
parentebe6ce42941b502fcd40967f53165418064d7d30 (diff)
downloadbuildroot-novena-b08f1d00e0391c9b134bc2e6851de1770a764cfe.tar.gz
buildroot-novena-b08f1d00e0391c9b134bc2e6851de1770a764cfe.zip
hal: add missing includes
Fix build (with modern kernel headers) - hald/linux/classdev.c needs sys/socket.h for struct sockaddr - hald/linux/addons/addon-storage.c needs limits.h for INT_MAX Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/hal')
-rw-r--r--package/hal/hal-include-fix.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/hal/hal-include-fix.patch b/package/hal/hal-include-fix.patch
new file mode 100644
index 000000000..af2a7fe59
--- /dev/null
+++ b/package/hal/hal-include-fix.patch
@@ -0,0 +1,35 @@
+[PATCH] hal: add missing includes
+
+- hald/linux/classdev.c needs sys/socket.h for struct sockaddr
+- hald/linux/addons/addon-storage.c needs limits.h for INT_MAX
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ hald/linux/addons/addon-storage.c | 1 +
+ hald/linux/classdev.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+Index: hal-0.5.8/hald/linux/addons/addon-storage.c
+===================================================================
+--- hal-0.5.8.orig/hald/linux/addons/addon-storage.c
++++ hal-0.5.8/hald/linux/addons/addon-storage.c
+@@ -29,6 +29,7 @@
+
+ #include <errno.h>
+ #include <fcntl.h>
++#include <limits.h>
+ #include <linux/cdrom.h>
+ #include <linux/fs.h>
+ #include <mntent.h>
+Index: hal-0.5.8/hald/linux/classdev.c
+===================================================================
+--- hal-0.5.8.orig/hald/linux/classdev.c
++++ hal-0.5.8/hald/linux/classdev.c
+@@ -31,6 +31,7 @@
+
+ #include <ctype.h>
+ #include <limits.h>
++#include <sys/socket.h>
+ #include <linux/types.h>
+ #include <net/if_arp.h> /* for ARPHRD_... */
+ #include <stdlib.h>