hal: add missing includes
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 16 Dec 2009 15:28:11 +0000 (16:28 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 16 Dec 2009 15:29:02 +0000 (16:29 +0100)
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>
CHANGES
package/hal/hal-include-fix.patch [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 4851a9f8f3adc8f23884f66f1a9d4f8729812c0d..f8fd9d0d32dfd82c96bdfb6994a6f4a485aa6386 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -3,7 +3,7 @@
        New packages: libcdaudio, libdvdnav, libdvdread, hostapd, tcpreplay
 
        Updated/fixed packages: autoconf, bind, binutils, busybox,
-       directfb, gst-plugins-bad, iw, libfuse, libpcap, lighttpd,
+       directfb, gst-plugins-bad, hal, iw, libfuse, libpcap, lighttpd,
        mesa, mtd-utils, pcre, qt, sshfs, tremor, usbutils
 
        Issues resolved (http://bugs.uclibc.org):
diff --git a/package/hal/hal-include-fix.patch b/package/hal/hal-include-fix.patch
new file mode 100644 (file)
index 0000000..af2a7fe
--- /dev/null
@@ -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>