Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: Allow building with older libusb
libusb commit f0cce43f882d ("core: Fix definition and use of enum libusb_transfer_type") split the types of split transfer type and endpoint transfer, introducing LIBUSB_ENDPOINT_TRANSFER_TYPE_BULK. The result is that when building with older libusb, such the one available on Ubuntu 20.04 the build fails with the following error: usb.c:84:16: error: ‘LIBUSB_ENDPOINT_TRANSFER_TYPE_BULK’ undeclared (first use in this function); did you mean ‘LIBUSB_TRANSFER_TYPE_BULK’? Introduce an alias using the preprocessor to make available the new define when building against the older version of libusb headers. Signed-off-by: Bjorn Andersson <[email protected]>
- Loading branch information