mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-03-24 01:34:06 +00:00
Adapt to USB HID header changes on NetBSD-8.99.9.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
This commit is contained in:
committed by
Adam Jackson
parent
e28608c8fb
commit
f45c3d0f35
@@ -100,6 +100,7 @@ AC_CHECK_HEADERS([usbhid.h dev/usb/usbhid.h],, [bsd_backend=no],
|
||||
#include <dev/usb/usb.h>
|
||||
#endif
|
||||
]])
|
||||
AC_CHECK_HEADERS([dev/hid/hid.h])
|
||||
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
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
#include <usbhid.h>
|
||||
#include <dev/usb/usb.h>
|
||||
#include <dev/usb/usbhid.h>
|
||||
#ifdef HAVE_DEV_HID_HID_H
|
||||
#include <dev/hid/hid.h>
|
||||
#endif
|
||||
#ifdef HAVE_DEV_USB_USB_IOCTL_H
|
||||
#include <dev/usb/usb_ioctl.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user