summaryrefslogtreecommitdiff
path: root/sysutils/hal/files/patch-hald_freebsd_osspec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/hal/files/patch-hald_freebsd_osspec.c')
-rw-r--r--sysutils/hal/files/patch-hald_freebsd_osspec.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/sysutils/hal/files/patch-hald_freebsd_osspec.c b/sysutils/hal/files/patch-hald_freebsd_osspec.c
index 01c07099cc55..ade6d2a730ad 100644
--- a/sysutils/hal/files/patch-hald_freebsd_osspec.c
+++ b/sysutils/hal/files/patch-hald_freebsd_osspec.c
@@ -1,6 +1,14 @@
--- hald/freebsd/osspec.c.orig 2008-05-07 19:24:01.000000000 -0400
-+++ hald/freebsd/osspec.c 2009-02-18 00:24:42.000000000 -0500
-@@ -46,6 +46,9 @@
++++ hald/freebsd/osspec.c 2009-05-30 03:14:33.000000000 -0400
+@@ -25,6 +25,7 @@
+ # include <config.h>
+ #endif
+
++#include <sys/param.h>
+ #include <string.h>
+
+ #include "../ids.h"
+@@ -46,13 +47,21 @@
#include "hf-sound.h"
#include "hf-storage.h"
#include "hf-usb.h"
@@ -10,10 +18,12 @@
#include "hf-volume.h"
/* the order matters: PCI devices must be created before their children, etc */
-@@ -53,6 +56,9 @@ static HFHandler *handlers[] = {
+ static HFHandler *handlers[] = {
&hf_pci_handler,
&hf_devtree_handler,
++#if __FreeBSD_version < 800092
&hf_usb_handler,
++#endif
+#ifdef HAVE_LIBUSB20
+ &hf_usb2_handler,
+#endif