-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vendored libusb does not work on older versions of macOS (below 10.12). #94
Comments
Hmmm.., i think we need some patch build.rs to use Xcode/config.h when build libusb for macOS. And not broke other build) |
There's also one case to consider: compiling on older macOS may work by setting |
Maybe making the |
I very little knowledge about macOs. So if want add support on older mac I am ask for PR. Because i not have any device with macOs for testing |
I'll have a look at this at some point, but it can take a while. |
I am not so sure if it is just HAVE_CLOCK_GETTIME, maybe there are others. |
This is mainly related to the
clock_gettime()
function which is not available before macOS 10.12. On the other hand, libusb can be compiled on older systems (I tested 10.11) via Homebrew.There is a define
HAVE_CLOCK_GETTIME
which is always set to 1 in thebuild.rs
of the libusb1-sys, so it will fail on macOS 10.11 and below.The text was updated successfully, but these errors were encountered: