libkarma (0.0.6-4.5) direct (non packaging) changes

Summary

 tools/karma_helper.c |    2 ++
 1 file changed, 2 insertions(+)

    
download this patch

Patch contents

--- libkarma-0.0.6.orig/tools/karma_helper.c
+++ libkarma-0.0.6/tools/karma_helper.c
@@ -251,8 +251,10 @@
 
     handle = usb_open(device);
 
+#ifdef __linux__
     if (unbind)
         return usb_detach_kernel_driver_np(handle, 0);
+#endif
 
     if (usb_claim_interface(handle, 0) < 0)
     {