Re: Bug#660395: xserver-xorg-input-joystick: FTBFS on kfreebsd-*
Hi,
Don't know if this is the proper fix, but my attached diff works for me.
Problem seems to be that the configure script tests usb.h without
including types.h first:
> | #include <dev/usb/usb.h>
...
> configure:12218: gcc -std=gnu99 -c -g -O2 conftest.c >&5
> In file included from conftest.c:28:0:
> /usr/include/dev/usb/usb.h:761:8: error: unknown type name 'u_char'
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
--- xserver-xorg-input-joystick-1.6.0.orig/configure.ac 2011-04-20 19:57:00.000000000 +0100
+++ xserver-xorg-input-joystick-1.6.0/configure.ac 2012-02-19 02:45:43.000000000 +0000
@@ -98,6 +98,7 @@
AC_CHECK_HEADERS([dev/usb/usb.h])
AC_CHECK_HEADERS([usbhid.h dev/usb/usbhid.h],, [bsd_backend=no],
[[#if HAVE_DEV_USB_USB_H
+#include <sys/types.h>
#include <dev/usb/usb.h>
#endif
]])
Reply to: