summaryrefslogtreecommitdiffstats
path: root/kstars
diff options
context:
space:
mode:
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>