- Add a workaround to fix the build on HEAD with new usb2 stack

PR:		132686
Submitted by:	Michiel Boland <michiel@boland.org>
This commit is contained in:
Martin Wilke 2009-03-16 19:02:52 +00:00
parent 8386736c4b
commit b705a12b25
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230246

View file

@ -0,0 +1,18 @@
Patch included below. FreeBSD_version is approximate.
--- kcontrol/usbview/usbdevices.h.orig 2006-07-22 10:15:22.000000000 +0200
+++ kcontrol/usbview/usbdevices.h 2009-03-15 23:24:38.000000000 +0100
@@ -17,8 +17,13 @@
#include <qptrlist.h>
#ifdef Q_OS_FREEBSD
+#include <osreldate.h>
+#if __FreeBSD_version >= 800069
+#include <legacy/dev/usb/usb.h>
+#else
#include <dev/usb/usb.h>
#endif
+#endif
class USBDB;