aboutsummaryrefslogtreecommitdiffstats
path: root/x11/kde4-runtime
diff options
context:
space:
mode:
authormarkus <markus@FreeBSD.org>2005-05-07 00:02:13 +0800
committermarkus <markus@FreeBSD.org>2005-05-07 00:02:13 +0800
commite4f54c965f745b8a9b81171c013e6b8b18c0c8c2 (patch)
tree5b85ca888e1a5fb02a0b38042739c469568d7474 /x11/kde4-runtime
parentd4a97dfb6db59129e915c257e6ac9cf32de6d0b4 (diff)
downloadfreebsd-ports-gnome-e4f54c965f745b8a9b81171c013e6b8b18c0c8c2.tar.gz
freebsd-ports-gnome-e4f54c965f745b8a9b81171c013e6b8b18c0c8c2.tar.zst
freebsd-ports-gnome-e4f54c965f745b8a9b81171c013e6b8b18c0c8c2.zip
Fix build on 4.9
Reported and tested by: Emilio <contiemilio@virgilio.it>
Diffstat (limited to 'x11/kde4-runtime')
-rw-r--r--x11/kde4-runtime/files/patch-kcontrol-usbview-usbdevices.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/kde4-runtime/files/patch-kcontrol-usbview-usbdevices.cpp b/x11/kde4-runtime/files/patch-kcontrol-usbview-usbdevices.cpp
new file mode 100644
index 000000000000..d6fa405cdc18
--- /dev/null
+++ b/x11/kde4-runtime/files/patch-kcontrol-usbview-usbdevices.cpp
@@ -0,0 +1,26 @@
+--- kcontrol/usbview/usbdevices.cpp.orig Thu May 5 17:21:17 2005
++++ kcontrol/usbview/usbdevices.cpp Thu May 5 17:43:04 2005
+@@ -26,6 +26,7 @@
+
+ #ifdef Q_OS_FREEBSD
+ #include <sys/ioctl.h>
++#include <sys/param.h>
+ #endif
+
+ QPtrList<USBDevice> USBDevice::_devices;
+@@ -260,11 +261,15 @@
+ _channels = di.udi_nports;
+
+ // determine the speed
++#if __FreeBSD_version > 490102
+ switch (di.udi_speed) {
+ case USB_SPEED_LOW: _speed = 1.5; break;
+ case USB_SPEED_FULL: _speed = 12.0; break;
+ case USB_SPEED_HIGH: _speed = 480.0; break;
+ }
++#else
++ _speed = di.udi_lowspeed ? 1.5 : 12.0;
++#endif
+
+ // Get all attached devicenodes
+ for ( int i = 0; i < USB_MAX_DEVNAMES; ++i )