diff options
author | mva <mva@FreeBSD.org> | 2010-02-05 18:30:49 +0800 |
---|---|---|
committer | mva <mva@FreeBSD.org> | 2010-02-05 18:30:49 +0800 |
commit | e8713146f4cf4a0ee32660777c7878acf65c44e0 (patch) | |
tree | 1d4c59d8699982c8fa73a7c6dafebc55f8438862 /devel/sdl12 | |
parent | f6842c8e6b9d62ac9013eb1d081072a348c52629 (diff) | |
download | freebsd-ports-gnome-e8713146f4cf4a0ee32660777c7878acf65c44e0.tar.gz freebsd-ports-gnome-e8713146f4cf4a0ee32660777c7878acf65c44e0.tar.zst freebsd-ports-gnome-e8713146f4cf4a0ee32660777c7878acf65c44e0.zip |
Restore joystick fix from ports/136973.
Submitted by: Adam K Kirchhoff <adamk@voicenet.com>
Diffstat (limited to 'devel/sdl12')
-rw-r--r-- | devel/sdl12/Makefile | 1 | ||||
-rw-r--r-- | devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/devel/sdl12/Makefile b/devel/sdl12/Makefile index eb774c489f06..dd351d8d80da 100644 --- a/devel/sdl12/Makefile +++ b/devel/sdl12/Makefile @@ -7,6 +7,7 @@ PORTNAME= sdl PORTVERSION= 1.2.14 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= devel MASTER_SITES= http://www.libsdl.org/release/ diff --git a/devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c b/devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c new file mode 100644 index 000000000000..3c5d8b921d21 --- /dev/null +++ b/devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c @@ -0,0 +1,16 @@ +--- src/joystick/bsd/SDL_sysjoystick.c.orig 2010-02-05 11:17:18.000000000 +0100 ++++ src/joystick/bsd/SDL_sysjoystick.c 2010-02-05 11:18:15.000000000 +0100 +@@ -303,11 +303,12 @@ + strerror(errno)); + goto usberr; + } ++ ++ rep = &hw->inreport; + #if defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063) + rep->rid = hid_get_report_id(fd); + if (rep->rid < 0) { + #else +- rep = &hw->inreport; + if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) { + #endif + rep->rid = -1; /* XXX */ |