summaryrefslogtreecommitdiffstats
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 02:58:54 +0200
commitf17aa6a5367b70eec8fd3456fffe100bb87c551e (patch)
tree6a1cf43a9137ee5f2f2559cd368f9850e59db96d
parent018f9f37093234758da14b56ac7690e51abff86c (diff)
downloadtdeedu-f17aa6a5367b70eec8fd3456fffe100bb87c551e.tar.gz
tdeedu-f17aa6a5367b70eec8fd3456fffe100bb87c551e.zip
Fix FTBFS with libusb2 on freebsd
[taken from FreeBSD kdeedu3 patches]
-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>