Restrict USBDK to Windows builds
authorjacobopantoja <jacobopantoja@gmail.com>
Fri, 10 Apr 2020 22:11:23 +0000 (00:11 +0200)
committerakallabeth <akallabeth@users.noreply.github.com>
Tue, 28 Apr 2020 12:03:19 +0000 (14:03 +0200)
This commit restricts ebdaea6f3b5e410b9a3380368d6023c52bed67cc to just Win32 builds

channels/urbdrc/client/libusb/libusb_udevman.c

index 7509326..f372e95 100644 (file)
@@ -879,6 +879,7 @@ UINT freerdp_urbdrc_client_subsystem_entry(PFREERDP_URBDRC_SERVICE_ENTRY_POINTS
        if (rc != LIBUSB_SUCCESS)
                goto fail;
 
+#ifdef _WIN32
 #if LIBUSB_API_VERSION >= 0x01000106
        /* Prefer usbDK backend on windows. Not uspported on other platforms. */
        rc = libusb_set_option(udevman->context, LIBUSB_OPTION_USE_USBDK);
@@ -895,6 +896,7 @@ UINT freerdp_urbdrc_client_subsystem_entry(PFREERDP_URBDRC_SERVICE_ENTRY_POINTS
                        goto fail;
        }
 #endif
+#endif
 
        udevman->flags = UDEVMAN_FLAG_ADD_BY_VID_PID;
        udevman->devman_loading = CreateMutexA(NULL, FALSE, "devman_loading");