aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2011-08-27 15:37:53 +0800
committernox <nox@FreeBSD.org>2011-08-27 15:37:53 +0800
commit46dabc896d91e6e8f09d48f0fbdb5a4dbaa33714 (patch)
treefec01401acf302feb4ef3778c925a57ba14250e8 /net
parent1775cf01e83c039552bcf56ae617bb9828ce9624 (diff)
downloadfreebsd-ports-gnome-46dabc896d91e6e8f09d48f0fbdb5a4dbaa33714.tar.gz
freebsd-ports-gnome-46dabc896d91e6e8f09d48f0fbdb5a4dbaa33714.tar.zst
freebsd-ports-gnome-46dabc896d91e6e8f09d48f0fbdb5a4dbaa33714.zip
Fix build without libusb patch.
Submitted by: pointyhat via pav
Diffstat (limited to 'net')
-rw-r--r--net/usbredir/files/patch-usbredirhost-usbredirhost.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/net/usbredir/files/patch-usbredirhost-usbredirhost.c b/net/usbredir/files/patch-usbredirhost-usbredirhost.c
index cb4e328d0e7b..a7b4dffcc78f 100644
--- a/net/usbredir/files/patch-usbredirhost-usbredirhost.c
+++ b/net/usbredir/files/patch-usbredirhost-usbredirhost.c
@@ -72,7 +72,17 @@
#define MAX_ENDPOINTS 32
#define MAX_INTERFACES 32 /* Max 32 endpoints and thus interfaces */
#define CTRL_TIMEOUT 5000 /* USB specifies a 5 second max timeout */
-@@ -487,6 +552,9 @@ struct usbredirhost *usbredirhost_open(
+@@ -418,7 +483,9 @@ struct usbredirhost *usbredirhost_open(
+ struct usbredirhost *host;
+ struct usb_redir_device_connect_header device_connect;
+ struct libusb_device_descriptor desc;
++#ifndef IGNORE_LIBUSB_GET_DEVICE_SPEED
+ enum libusb_speed speed;
++#endif
+ int r;
+
+ host = calloc(1, sizeof(*host));
+@@ -487,6 +554,9 @@ struct usbredirhost *usbredirhost_open(
return NULL;
}
@@ -82,7 +92,7 @@
speed = libusb_get_device_speed(host->dev);
switch (speed) {
case LIBUSB_SPEED_LOW:
-@@ -500,6 +568,7 @@ struct usbredirhost *usbredirhost_open(
+@@ -500,6 +570,7 @@ struct usbredirhost *usbredirhost_open(
default:
device_connect.speed = usb_redir_speed_unknown;
}