From 697520146be4ccd39cbdb7c1839a50e32213c88c Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 14 2020 12:05:22 +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 _