summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Holm <dholm@gentoo.org>2004-06-29 16:18:53 +0000
committerDavid Holm <dholm@gentoo.org>2004-06-29 16:18:53 +0000
commit36cbae15b70c844d459baa894a3d786255c8dc3b (patch)
tree912edcd2a9bbafe2b5b61461db5005671d62c850 /media-plugins/swh-plugins/files
parentglibc -> libc (Manifest recommit) (diff)
downloadgentoo-2-36cbae15b70c844d459baa894a3d786255c8dc3b.tar.gz
gentoo-2-36cbae15b70c844d459baa894a3d786255c8dc3b.tar.bz2
gentoo-2-36cbae15b70c844d459baa894a3d786255c8dc3b.zip
Added a patch to make swh-plugins compile on ppc
Diffstat (limited to 'media-plugins/swh-plugins/files')
-rw-r--r--media-plugins/swh-plugins/files/swh-plugins-0.4.3-ppc.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/media-plugins/swh-plugins/files/swh-plugins-0.4.3-ppc.patch b/media-plugins/swh-plugins/files/swh-plugins-0.4.3-ppc.patch
new file mode 100644
index 000000000000..1b056330e454
--- /dev/null
+++ b/media-plugins/swh-plugins/files/swh-plugins-0.4.3-ppc.patch
@@ -0,0 +1,16 @@
+--- swh-plugins-0.4.3-orig/gverb/gverb-test.c.orig 2004-06-29 18:11:36.491890744 +0200
++++ swh-plugins-0.4.3/gverb/gverb-test.c 2004-06-29 18:13:19.357252832 +0200
+@@ -7,7 +7,13 @@
+
+ void run(const char *desc);
+
++#ifdef __i386__
+ #define rdtscll(val) __asm__ __volatile__("rdtsc" : "=A" (val))
++#elif __powerpc__
++#define rdtscll(val) __asm__ __volatile__("mftb %0" : "=r" (val))
++#else
++#error Implement rdtscll for your architecture
++#endif
+ #define SIZE 48000
+
+ float in[SIZE], out[2][SIZE];