aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2011-08-27 07:37:53 +0000
committerJuergen Lock <nox@FreeBSD.org>2011-08-27 07:37:53 +0000
commit9423b0e2a6517914771fe213356798309ee194a9 (patch)
tree67f49edc0d06529bb985f364e29cad1dd8549c97 /net
parent56e07d8f333720e2c803f02d13274b81af242d54 (diff)
downloadports-9423b0e2a6517914771fe213356798309ee194a9.tar.gz
ports-9423b0e2a6517914771fe213356798309ee194a9.zip
Notes
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;
}