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 /meson.build | |
parent | a050309250f87ec733469c6b8030757ab8304c42 (diff) | |
download | gusb-bd503d0b989d57e038435585eba3963c2d4e4588.tar.gz |
Do not depend on libusb_get_parent() to fix FreeBSD compile
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build index ba1f314..128ad6e 100644 --- a/meson.build +++ b/meson.build @@ -104,6 +104,9 @@ endif if cc.has_header_symbol('libusb-1.0/libusb.h', 'libusb_set_option') conf.set('HAVE_LIBUSB_SET_OPTION', '1') endif +if cc.has_header_symbol('libusb-1.0/libusb.h', 'libusb_get_parent') + conf.set('HAVE_LIBUSB_GET_PARENT', '1') +endif gusb_deps = [ libgio, |