diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
commit | 9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch) | |
tree | 9b071a8105704e992946dcd6b801e9fcb7635142 /audio/mixxx/files/patch-lib_hidapi-0.8.0-pre_linux_hid-libusb.c | |
parent | MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff) |
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.
With hat: portmgr
Sponsored by: Absolight
Diffstat (limited to 'audio/mixxx/files/patch-lib_hidapi-0.8.0-pre_linux_hid-libusb.c')
-rw-r--r-- | audio/mixxx/files/patch-lib_hidapi-0.8.0-pre_linux_hid-libusb.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/audio/mixxx/files/patch-lib_hidapi-0.8.0-pre_linux_hid-libusb.c b/audio/mixxx/files/patch-lib_hidapi-0.8.0-pre_linux_hid-libusb.c new file mode 100644 index 000000000000..9ef29ab1275b --- /dev/null +++ b/audio/mixxx/files/patch-lib_hidapi-0.8.0-pre_linux_hid-libusb.c @@ -0,0 +1,42 @@ +--- lib/hidapi-0.8.0-pre/linux/hid-libusb.c.orig 2013-05-08 23:20:26 UTC ++++ lib/hidapi-0.8.0-pre/linux/hid-libusb.c +@@ -48,6 +48,12 @@ + + #include "hidapi.h" + ++#ifdef __FreeBSD__ ++#define LIBUSB_GET_STRING_DESCRIPTOR(h,i,l,d,n) libusb_get_string_descriptor_ascii(h,i,d,n) ++#else ++#define LIBUSB_GET_STRING_DESCRIPTOR(h,i,l,d,n) libusb_get_string_descriptor(h,i,l,d,n) ++#endif ++ + #ifdef __cplusplus + extern "C" { + #endif +@@ -264,7 +270,7 @@ static uint16_t get_first_language(libus + int len; + + /* Get the string from libusb. */ +- len = libusb_get_string_descriptor(dev, ++ len = LIBUSB_GET_STRING_DESCRIPTOR(dev, + 0x0, /* String ID */ + 0x0, /* Language */ + (unsigned char*)buf, +@@ -282,7 +288,7 @@ static int is_language_supported(libusb_ + int i; + + /* Get the string from libusb. */ +- len = libusb_get_string_descriptor(dev, ++ len = LIBUSB_GET_STRING_DESCRIPTOR(dev, + 0x0, /* String ID */ + 0x0, /* Language */ + (unsigned char*)buf, +@@ -327,7 +333,7 @@ static wchar_t *get_usb_string(libusb_de + lang = get_first_language(dev); + + /* Get the string from libusb. */ +- len = libusb_get_string_descriptor(dev, ++ len = LIBUSB_GET_STRING_DESCRIPTOR(dev, + idx, + lang, + (unsigned char*)buf, |