]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
compile in OS X
authorskamkar <skamkar@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 4 Aug 2009 18:21:55 +0000 (18:21 +0000)
committerskamkar <skamkar@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 4 Aug 2009 18:21:55 +0000 (18:21 +0000)
linux/usb.c

index 6337c21ade86a4440f09cb845616cb39cf8e9fad..4f3b4e7e1f5bda0409b1409abea149a836e251db 100644 (file)
@@ -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)
Impressum, Datenschutz