Commit 00aa8b4ecf4fb666dc0376fba17a0b528bd929c7

ckolivas 2013-09-28T23:05:39

libusb kernel driver operations are only available on linux.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/usbutils.c b/usbutils.c
index bb39618..8fff847 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -1490,7 +1490,7 @@ static int _usb_init(struct cgpu_info *cgpu, struct libusb_device *dev, struct u
 		goto dame;
 	}
 
-#ifndef WIN32
+#ifdef LINUX
 	for (ifinfo = 0; ifinfo < found->intinfo_count; ifinfo++) {
 		if (libusb_kernel_driver_active(cgusb->handle, THISIF(found, ifinfo)) == 1) {
 			applog(LOG_DEBUG, "USB init, kernel attached ... %s", devstr);