X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_joystick.c;h=5ecebdc0b6deb5ee72c21a2c44ce81fe5c74766c;hb=14e6aa04047e7be64404a3eceaa20aeba9ce1ab4;hp=9348d13c94f0b7f96b75207a2c9f459319bb3289;hpb=fe9a8632219da01851e7b0a7b4bcdafa508793c7;p=freeglut diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 9348d13..5ecebdc 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -73,8 +73,8 @@ #if TARGET_HOST_UNIX_X11 # define _JS_MAX_AXES 16 # if defined(__FreeBSD__) || defined(__NetBSD__) -/* XXX The next line is an unjustified hack which needs to be changed by someone who - * XXX is familiar with *nix, BSD, and USB joysticks. +/* + * XXX The below hack is done until freeglut's autoconf is updated. */ # define HAVE_USB_JS 1 @@ -84,6 +84,13 @@ # if __FreeBSD_version >= 500000 # include # else +/* + * XXX NetBSD/amd64 systems may find that they have to steal the + * XXX /usr/include/machine/joystick.h from a NetBSD/i386 system. + * XXX I cannot comment whether that works for the interface, but + * XXX it lets you compile...(^& I do not think that we can do away + * XXX with this header. + */ # include # endif # define JS_DATA_TYPE joystick @@ -137,7 +144,7 @@ # ifdef HAVE_USB_JS # if defined(__NetBSD__) /* - * XXX Apparently another ugly hack which someone who knows BSD and USBHID needs to solve + * XXX The below hack is done until freeglut's autoconf is updated. */ # define HAVE_USBHID_H 1 # ifdef HAVE_USBHID_H