diff options
author | Richard Hughes <richard@hughsie.com> | 2021-05-21 09:55:56 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2021-05-21 10:59:20 +0100 |
commit | bd503d0b989d57e038435585eba3963c2d4e4588 (patch) | |
tree | c8f41958cfc89f4354490b964f0ccf429ee875f7 /gusb | |
parent | a050309250f87ec733469c6b8030757ab8304c42 (diff) | |
download | gusb-bd503d0b989d57e038435585eba3963c2d4e4588.tar.gz |
Do not depend on libusb_get_parent() to fix FreeBSD compile
Diffstat (limited to 'gusb')
-rw-r--r-- | gusb/gusb-device.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c index 3f782f3..32c3213 100644 --- a/gusb/gusb-device.c +++ b/gusb/gusb-device.c @@ -212,6 +212,15 @@ g_usb_device_init (GUsbDevice *device) device->priv = g_usb_device_get_instance_private (device); } +/* not defined in FreeBSD */ +#ifndef HAVE_LIBUSB_GET_PARENT +libusb_device * +libusb_get_parent (libusb_device *dev) +{ + return NULL; +} +#endif + static void g_usb_device_build_parent_port_number (GString *str, libusb_device *dev) { |