summaryrefslogtreecommitdiffstats
path: root/kstars
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-28 02:58:54 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-28 03:01:13 +0200
commitb2c30738278d21c4477cad6b473a652a20354add (patch)
treeaa6746374c03047b0d9ec3dac11921ec75e7ca3d /kstars
parent1860ce3753ff42011abd242aad50199fc609ecf4 (diff)
downloadtdeedu-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.c7
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>