diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-06-28 02:58:54 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-06-28 03:01:13 +0200 |
commit | b2c30738278d21c4477cad6b473a652a20354add (patch) | |
tree | aa6746374c03047b0d9ec3dac11921ec75e7ca3d /kstars | |
parent | 1860ce3753ff42011abd242aad50199fc609ecf4 (diff) | |
download | tdeedu-b2c30738278d21c4477cad6b473a652a20354add.tar.gz tdeedu-b2c30738278d21c4477cad6b473a652a20354add.zip |
Fix FTBFS with libusb2 on freebsd
[taken from FreeBSD kdeedu3 patches]
(cherry picked from commit f17aa6a5367b70eec8fd3456fffe100bb87c551e)
Diffstat (limited to 'kstars')
-rw-r--r-- | kstars/kstars/indi/fli/libfli-usb-sys-bsd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kstars/kstars/indi/fli/libfli-usb-sys-bsd.c b/kstars/kstars/indi/fli/libfli-usb-sys-bsd.c index d1f6a2b0..caccf859 100644 --- a/kstars/kstars/indi/fli/libfli-usb-sys-bsd.c +++ b/kstars/kstars/indi/fli/libfli-usb-sys-bsd.c @@ -41,8 +41,15 @@ */ +#include <sys/param.h> #include <sys/types.h> +#if __FreeBSD_version >= 800069 +#include <libusb20.h> +#include <dev/usb/usb_ioctl.h> +#define USB_SET_TIMEOUT USB_SET_RX_TIMEOUT +#else #include <dev/usb/usb.h> +#endif #include <sys/ioctl.h> #include <unistd.h> |