pkgsrc-ng/graphics/freeglut/patches/patch-src_freeglut__joystick.c
2013-09-26 17:14:40 +02:00

20 lines
580 B
C

$NetBSD: patch-src_freeglut__joystick.c,v 1.1 2013/05/04 14:32:20 rodent Exp $
Fix usb.h include for NetBSD.
--- src/freeglut_joystick.c.orig 2011-09-28 01:37:26.000000000 +0000
+++ src/freeglut_joystick.c
@@ -152,7 +152,11 @@
# include <libusbhid.h>
# endif
# endif
-# include <legacy/dev/usb/usb.h>
+# if defined(__NetBSD__)
+# include <dev/usb/usb.h>
+# else
+# include <legacy/dev/usb/usb.h>
+# endif
# include <dev/usb/usbhid.h>
/* Compatibility with older usb.h revisions */