diff options
author | Gustavo Zacarias <gustavoz@gentoo.org> | 2007-02-15 14:49:50 +0000 |
---|---|---|
committer | Gustavo Zacarias <gustavoz@gentoo.org> | 2007-02-15 14:49:50 +0000 |
commit | 3d6d23bbb54f543d13444f3a9c295e45ebe1964d (patch) | |
tree | 6ab7ed5e2ac4e5429dda615b8e355fdbcf5b731e /media-libs/gstreamer/files | |
parent | add 2.9a ebuild, bug 135447 (diff) | |
download | gentoo-2-3d6d23bbb54f543d13444f3a9c295e45ebe1964d.tar.gz gentoo-2-3d6d23bbb54f543d13444f3a9c295e45ebe1964d.tar.bz2 gentoo-2-3d6d23bbb54f543d13444f3a9c295e45ebe1964d.zip |
Fix gst-0.8 gcc4 sparc builds, see http://bugzilla.gnome.org/show_bug.cgi?id=312812
(Portage version: 2.1.2-r9)
Diffstat (limited to 'media-libs/gstreamer/files')
-rw-r--r-- | media-libs/gstreamer/files/cothreads-gcc4.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/media-libs/gstreamer/files/cothreads-gcc4.patch b/media-libs/gstreamer/files/cothreads-gcc4.patch new file mode 100644 index 000000000000..a9b37eda38e6 --- /dev/null +++ b/media-libs/gstreamer/files/cothreads-gcc4.patch @@ -0,0 +1,24 @@ +diff -urN gstreamer-0.8.10.orig/gst/cothreads.c gstreamer-0.8.10/gst/cothreads.c +--- gstreamer-0.8.10.orig/gst/cothreads.c 2004-11-02 16:02:11.000000000 +0100 ++++ gstreamer-0.8.10/gst/cothreads.c 2005-08-07 15:19:11.000000000 +0200 +@@ -651,7 +651,7 @@ + makecontext (&ucp, cothread_stub, 0); + setcontext (&ucp); + #else +- GST_ARCH_SETUP_STACK ((char *) cothread->sp); ++ GST_ARCH_SETUP_STACK (cothread->sp); + GST_ARCH_SET_SP (cothread->sp); + /* start it */ + GST_ARCH_CALL (cothread_stub); +diff -urN gstreamer-0.8.10.orig/gst/gstarch.h gstreamer-0.8.10/gst/gstarch.h +--- gstreamer-0.8.10.orig/gst/gstarch.h 2004-03-15 15:43:21.000000000 +0100 ++++ gstreamer-0.8.10/gst/gstarch.h 2005-08-07 15:19:01.000000000 +0200 +@@ -38,7 +38,7 @@ + __asm__("call *%0" : : "r"(target) ); + + /* assuming the stackframe is 16 bytes */ +-#define GST_ARCH_SETUP_STACK(sp) sp -= 4 ++#define GST_ARCH_SETUP_STACK(sp) (sp) = (char *)(sp) - 4 + + + |