mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-29 16:04:33 +00:00
libusb kernel driver operations are only available on linux.
This commit is contained in:
parent
2ec601e123
commit
00aa8b4ecf
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user