From c8e9a0912ffc3469c6fe4a357ff76b567283a30a Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 19:12:04 +0000 Subject: Apply patch gphoto2-device-return.patch patch_name: gphoto2-device-return.patch present_in_specfile: true location_in_specfile: 3 --- diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c index c91f836..ddbfcf4 100644 --- a/libgphoto2_port/usb/libusb.c +++ b/libgphoto2_port/usb/libusb.c @@ -44,6 +44,12 @@ #include #include +#if defined(LIBUSB_HAS_GET_DRIVER_NP) && defined(LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP) +/* Pull in USBDEVFS_CONNECT */ +#include +#include +#endif + #ifdef ENABLE_NLS # include # undef _