Compiling for macOS
Closed this issue · 3 comments
Excellent library! Despite having -linux in its name, I found this software to work beautifully on macOS as well with a single change: Apple does not have ELIBACC, so you need to ./configure with -DELIBACC=EINVAL (or whatever error code you want to use that macOS supports). Other than that, it works! Feel free to conditionalize the use of ELIBACC on Linux or don't bother since the workaround is trivial.
(Don't mind me. I didn't look at the repo name and accidentally though this was on another project that I maintain. It was completely unrelated to this repo and I apologize for it. Comment has been removed.)
@ryandrake08, would you be willing to raise a PR for this? I haven't really tried to run this on OSX, so any help would be appreciated. I do think I want to translate the libusb error code into a standard errno.
Please review: #10