mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-30 03:28:32 -07:00
compile in OS X
This commit is contained in:
parent
77d9355e65
commit
48e6e0a65a
1 changed files with 2 additions and 0 deletions
|
@ -153,11 +153,13 @@ usb_dev_handle* OpenProxmark(int verbose) {
|
||||||
if (!handle)
|
if (!handle)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
#ifndef __APPLE__
|
||||||
/* detach kernel driver first */
|
/* detach kernel driver first */
|
||||||
ret = usb_detach_kernel_driver_np(handle, iface);
|
ret = usb_detach_kernel_driver_np(handle, iface);
|
||||||
/* don't complain if no driver attached */
|
/* don't complain if no driver attached */
|
||||||
if (ret<0 && ret != -61 && verbose)
|
if (ret<0 && ret != -61 && verbose)
|
||||||
fprintf(stderr, "detach kernel driver failed: (%d) %s!\n", ret, usb_strerror());
|
fprintf(stderr, "detach kernel driver failed: (%d) %s!\n", ret, usb_strerror());
|
||||||
|
#endif
|
||||||
ret = usb_claim_interface(handle, iface);
|
ret = usb_claim_interface(handle, iface);
|
||||||
if (ret<0) {
|
if (ret<0) {
|
||||||
if (verbose)
|
if (verbose)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue