libsdl: added patch to fix build (FS#933)

This commit is contained in:
Jose V Beneyto 2013-06-21 18:29:01 +02:00
parent 33552e3676
commit 2449cb476e
3 changed files with 17 additions and 2 deletions

View File

@ -1 +1,2 @@
9d96df8417572a2afb781a7c4c811a85 SDL-1.2.15.tar.gz
ebff7a0aef0b79a0199e394ff9b212ab libsdl-1.2.x-libx11.patch

View File

@ -6,12 +6,15 @@
name=libsdl
version=1.2.15
release=1
source=(http://www.libsdl.org/release/SDL-$version.tar.gz)
release=2
source=(http://www.libsdl.org/release/SDL-$version.tar.gz \
$name-1.2.x-libx11.patch)
build () {
cd SDL-$version
patch -p1 -i $SRC/$name-1.2.x-libx11.patch
./configure --prefix=/usr \
--enable-alsa \
--mandir=/usr/man

View File

@ -0,0 +1,11 @@
--- a/src/video/x11/SDL_x11sym.h Wed Feb 27 15:20:31 2013 -0800
+++ a/src/video/x11/SDL_x11sym.h Wed Mar 27 16:07:23 2013 +0100
@@ -165,7 +165,7 @@
*/
#ifdef LONG64
SDL_X11_MODULE(IO_32BIT)
-SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return)
+SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return)
SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),)
#endif