[65136] trunk/dports/devel/libusb
toby at macports.org
toby at macports.org
Mon Mar 22 10:30:42 PDT 2010
Revision: 65136
http://trac.macports.org/changeset/65136
Author: toby at macports.org
Date: 2010-03-22 10:30:41 -0700 (Mon, 22 Mar 2010)
Log Message:
-----------
supposed big-endian fix (http://www.libusb.org/ticket/30)
Modified Paths:
--------------
trunk/dports/devel/libusb/Portfile
trunk/dports/devel/libusb/files/patch-libusb__os__darwin_usb.c
Modified: trunk/dports/devel/libusb/Portfile
===================================================================
--- trunk/dports/devel/libusb/Portfile 2010-03-22 17:22:09 UTC (rev 65135)
+++ trunk/dports/devel/libusb/Portfile 2010-03-22 17:30:41 UTC (rev 65136)
@@ -4,6 +4,7 @@
name libusb
version 1.0.6
+revision 1
categories devel
description library for USB device access
Modified: trunk/dports/devel/libusb/files/patch-libusb__os__darwin_usb.c
===================================================================
--- trunk/dports/devel/libusb/files/patch-libusb__os__darwin_usb.c 2010-03-22 17:22:09 UTC (rev 65135)
+++ trunk/dports/devel/libusb/files/patch-libusb__os__darwin_usb.c 2010-03-22 17:30:41 UTC (rev 65136)
@@ -1,5 +1,5 @@
---- libusb/os/darwin_usb.c.orig 2009-09-02 17:18:57.000000000 -0700
-+++ libusb/os/darwin_usb.c 2009-09-02 17:19:24.000000000 -0700
+--- libusb/os/darwin_usb.c.orig 2009-11-21 09:10:21.000000000 -0800
++++ libusb/os/darwin_usb.c 2010-03-22 10:29:38.000000000 -0700
@@ -279,7 +279,7 @@
if (kresult != kIOReturnSuccess) {
_usbi_log (ctx, LOG_LEVEL_ERROR, "could not add hotplug event source: %s", darwin_error_str (kresult));
@@ -9,3 +9,16 @@
}
/* arm notifiers */
+@@ -1191,9 +1191,9 @@
+ tpriv->req.bmRequestType = setup->bmRequestType;
+ tpriv->req.bRequest = setup->bRequest;
+ /* these values should already be in bus order */
+- tpriv->req.wValue = setup->wValue;
+- tpriv->req.wIndex = setup->wIndex;
+- tpriv->req.wLength = setup->wLength;
++ tpriv->req.wValue = libusb_le16_to_cpu(setup->wValue);
++ tpriv->req.wIndex = libusb_le16_to_cpu(setup->wIndex);
++ tpriv->req.wLength = libusb_le16_to_cpu(setup->wLength);
+ /* data is stored after the libusb control block */
+ tpriv->req.pData = transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE;
+ tpriv->req.completionTimeout = transfer->timeout;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100322/d3376123/attachment.html>
More information about the macports-changes
mailing list