[Pcsclite-cvs-commit] r2453 - trunk/Drivers/ccid/contrib/Kobil_mIDentity_switch

Ludovic Rousseau rousseau at alioth.debian.org
Wed Feb 28 14:08:59 CET 2007


Author: rousseau
Date: 2007-02-28 14:08:59 +0100 (Wed, 28 Feb 2007)
New Revision: 2453

Modified:
   trunk/Drivers/ccid/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c
Log:
usb_detach_kernel_driver_np() is not available on libusb for Mac OS X


Modified: trunk/Drivers/ccid/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c
===================================================================
--- trunk/Drivers/ccid/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c	2007-02-28 12:21:26 UTC (rev 2452)
+++ trunk/Drivers/ccid/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c	2007-02-28 13:08:59 UTC (rev 2453)
@@ -113,6 +113,7 @@
 		return(rv);
     }
 
+#ifndef __APPLE__
     printf("failed with error %d, trying to detach kernel driver ....\n", rv);
     rv = usb_detach_kernel_driver_np(usb, ifnum);
     if (rv == 0)
@@ -125,6 +126,7 @@
 			return(rv);
 		}
     }
+#endif
     printf("failed with error %d, giving up.\n", rv);
     return(rv);
 }




More information about the Pcsclite-cvs-commit mailing list