diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2009-03-09 17:15:43 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2009-03-09 17:15:43 +0000 |
commit | f5d05ea54d1f80ecd08c5809a3ce5e1594e34eaa (patch) | |
tree | 343e91600b9cf81ffb94bf71017b43a88bfcbf45 /devel/libgamepad | |
parent | e9e0ba8df0a817712eab81d4a962e79cae35dca1 (diff) | |
download | ports-f5d05ea54d1f80ecd08c5809a3ce5e1594e34eaa.tar.gz ports-f5d05ea54d1f80ecd08c5809a3ce5e1594e34eaa.zip |
Notes
Diffstat (limited to 'devel/libgamepad')
-rw-r--r-- | devel/libgamepad/Makefile | 8 | ||||
-rw-r--r-- | devel/libgamepad/files/extra-patch-gamepad_usbhid.c | 10 |
2 files changed, 17 insertions, 1 deletions
diff --git a/devel/libgamepad/Makefile b/devel/libgamepad/Makefile index d935f197c4fc..9342adec1781 100644 --- a/devel/libgamepad/Makefile +++ b/devel/libgamepad/Makefile @@ -19,4 +19,10 @@ pre-build: MAN3= libgamepad.3 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 800069 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-gamepad_usbhid.c +.endif + +.include <bsd.port.post.mk> diff --git a/devel/libgamepad/files/extra-patch-gamepad_usbhid.c b/devel/libgamepad/files/extra-patch-gamepad_usbhid.c new file mode 100644 index 000000000000..57de0a000c15 --- /dev/null +++ b/devel/libgamepad/files/extra-patch-gamepad_usbhid.c @@ -0,0 +1,10 @@ +--- gamepad_usbhid.c.orig 2009-03-08 12:35:35.000000000 +0300 ++++ gamepad_usbhid.c 2009-03-08 12:35:44.000000000 +0300 +@@ -3,6 +3,7 @@ + #include <string.h> + #include <sys/ioctl.h> + #include <dev/usb/usb.h> ++#include <dev/usb/usb_ioctl.h> + #include <errno.h> + #include <fcntl.h> + #include <unistd.h> |