summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/swh-plugins/files/swh-plugins-0.4.3-ppc.patch')
-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];