summaryrefslogtreecommitdiff
path: root/driver/xf86-input-joystick/src/backend_bsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/xf86-input-joystick/src/backend_bsd.c')
-rw-r--r--driver/xf86-input-joystick/src/backend_bsd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/driver/xf86-input-joystick/src/backend_bsd.c b/driver/xf86-input-joystick/src/backend_bsd.c
index d8c6bac23..248cde3ba 100644
--- a/driver/xf86-input-joystick/src/backend_bsd.c
+++ b/driver/xf86-input-joystick/src/backend_bsd.c
@@ -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
@@ -227,7 +230,7 @@ jstkCloseDevice_bsd(JoystickDevPtr joystick)
*
* Reads data from fd and stores it in the JoystickDevRec struct
* fills in the type of event and the number of the button/axis
- * return 1 if success, 0 otherwise. Success does not neccessarily
+ * return 1 if success, 0 otherwise. Success does not necessarily
* mean that there is a new event waiting.
*
***********************************************************************