From: skamkar Date: Tue, 4 Aug 2009 18:21:55 +0000 (+0000) Subject: compile in OS X X-Git-Tag: v1.0.0~531 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/48e6e0a65af0225b8b1a678e305ac9e11e9fdccb?ds=sidebyside compile in OS X --- diff --git a/linux/usb.c b/linux/usb.c index 6337c21a..4f3b4e7e 100644 --- a/linux/usb.c +++ b/linux/usb.c @@ -153,11 +153,13 @@ usb_dev_handle* OpenProxmark(int verbose) { if (!handle) return NULL; +#ifndef __APPLE__ /* detach kernel driver first */ ret = usb_detach_kernel_driver_np(handle, iface); /* don't complain if no driver attached */ if (ret<0 && ret != -61 && verbose) fprintf(stderr, "detach kernel driver failed: (%d) %s!\n", ret, usb_strerror()); +#endif ret = usb_claim_interface(handle, iface); if (ret<0) { if (verbose)