mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-03-24 01:34:06 +00:00
Fix build on FreeBSD with USB2
Including dev/usb/usb_ioctl.h fixes missing declaration of USB_GET_REPORT_ID on FreeBSD-Current.
This commit is contained in:
@@ -101,6 +101,7 @@ AC_CHECK_HEADERS([usbhid.h dev/usb/usbhid.h],, [bsd_backend=no],
|
||||
AC_CHECK_LIB([usbhid],[hid_get_item],, [bsd_backend=no])
|
||||
AM_CONDITIONAL(BSD_BACKEND, [test "x$bsd_backend" = xyes])
|
||||
if test "x$bsd_backend" = xyes; then
|
||||
AC_CHECK_HEADERS([dev/usb/usb_ioctl.h])
|
||||
AC_DEFINE(BSD_BACKEND, 1, [Compile BSD usbhid backend])
|
||||
fi
|
||||
|
||||
|
||||
@@ -43,6 +43,9 @@
|
||||
#include <usbhid.h>
|
||||
#include <dev/usb/usb.h>
|
||||
#include <dev/usb/usbhid.h>
|
||||
#ifdef HAVE_DEV_USB_USB_IOCTL_H
|
||||
#include <dev/usb/usb_ioctl.h>
|
||||
#endif
|
||||
|
||||
#include "jstk.h"
|
||||
#include "backend_bsd.h"
|
||||
|
||||
Reference in New Issue
Block a user