aboutsummaryrefslogtreecommitdiff
path: root/graphics/freeglut/files/extra-patch-src__freeglut_joystick.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/freeglut/files/extra-patch-src__freeglut_joystick.c')
-rw-r--r--graphics/freeglut/files/extra-patch-src__freeglut_joystick.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/graphics/freeglut/files/extra-patch-src__freeglut_joystick.c b/graphics/freeglut/files/extra-patch-src__freeglut_joystick.c
new file mode 100644
index 000000000000..fa71983cca40
--- /dev/null
+++ b/graphics/freeglut/files/extra-patch-src__freeglut_joystick.c
@@ -0,0 +1,34 @@
+--- ./src/freeglut_joystick.c.orig 2009-11-14 06:31:39.000000000 +0200
++++ ./src/freeglut_joystick.c 2010-05-31 21:27:13.362358514 +0300
+@@ -79,11 +79,13 @@
+ # include <errno.h>
+ # endif
+ # if defined(__FreeBSD__) || defined(__NetBSD__)
++# include <osreldate.h>
+ /* XXX The below hack is done until freeglut's autoconf is updated. */
+ # define HAVE_USB_JS 1
+
+ # if defined(__FreeBSD__)
+ # include <sys/joystick.h>
++# include <dev/usb/usb_ioctl.h>
+ # else
+ /*
+ * XXX NetBSD/amd64 systems may find that they have to steal the
+@@ -200,7 +202,7 @@
+ */
+ static char *fghJoystickWalkUSBdev(int f, char *dev, char *out, int outlen)
+ {
+- struct usb_device_info di;
++/* struct usb_device_info di;
+ int i, a;
+ char *cp;
+
+@@ -221,6 +223,7 @@
+ return out;
+ }
+ }
++ */
+ return NULL;
+ }
+
+