FreeBSD Bugzilla – Attachment 94085 Details for
Bug 132150
[PATCH] devel/sdl: fix build with new usb stack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sdl-1.2.13_3,2.patch
sdl-1.2.13_3,2.patch (text/plain), 1.48 KB, created by
Yuri Pankov
on 2009-02-27 03:50:01 UTC
(
hide
)
Description:
sdl-1.2.13_3,2.patch
Filename:
MIME Type:
Creator:
Yuri Pankov
Created:
2009-02-27 03:50:01 UTC
Size:
1.48 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/devel/sdl12/Makefile,v >retrieving revision 1.115 >diff -u -r1.115 Makefile >--- Makefile 19 Feb 2009 21:45:39 -0000 1.115 >+++ Makefile 27 Feb 2009 03:44:45 -0000 >@@ -7,7 +7,7 @@ > > PORTNAME= sdl > PORTVERSION= 1.2.13 >-PORTREVISION= 2 >+PORTREVISION= 3 > PORTEPOCH= 2 > CATEGORIES= devel > MASTER_SITES= http://www.libsdl.org/release/ >@@ -62,6 +62,11 @@ > > .include <bsd.port.pre.mk> > >+.if ${OSVERSION} >= 800064 >+CFLAGS+= -DUSBHID_UCR_DATA >+EXTRA_PATCHES+= ${FILESDIR}/usb2 >+.endif >+ > MAN3!= ${CAT} ${FILESDIR}/man3 > > .if defined(WITHOUT_AALIB) >Index: files/usb2 >=================================================================== >RCS file: files/usb2 >diff -N files/usb2 >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/usb2 27 Feb 2009 03:44:45 -0000 >@@ -0,0 +1,22 @@ >+--- src/joystick/bsd/SDL_sysjoystick.c.orig 2007-12-31 07:47:55.000000000 +0300 >++++ src/joystick/bsd/SDL_sysjoystick.c 2009-02-27 06:12:54.503954886 +0300 >+@@ -45,6 +45,7 @@ >+ #else >+ #include <dev/usb/usb.h> >+ #include <dev/usb/usbhid.h> >++#include <dev/usb/usb_ioctl.h> >+ #endif >+ >+ #if defined(HAVE_USBHID_H) >+@@ -74,6 +75,11 @@ >+ #define MAX_JOY_JOYS 2 >+ #define MAX_JOYS (MAX_UHID_JOYS + MAX_JOY_JOYS) >+ >++struct usb_ctl_report { >++ int ucr_report; >++ u_char ucr_data[1024]; /* filled data size will vary */ >++}; >++ >+ struct report { >+ struct usb_ctl_report *buf; /* Buffer */ >+ size_t size; /* Buffer size */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 132150
: 94085