]> git.pld-linux.org Git - packages/gavl.git/commitdiff
- fix compilation on non-x86 archs
authorsparky <sparky@pld-linux.org>
Sat, 19 May 2007 18:02:22 +0000 (18:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gavl-non-x86.patch -> 1.1

gavl-non-x86.patch [new file with mode: 0644]

diff --git a/gavl-non-x86.patch b/gavl-non-x86.patch
new file mode 100644 (file)
index 0000000..bc2cf9c
--- /dev/null
@@ -0,0 +1,19 @@
+diff -Nur gavl-0.2.4.orig/gavl/memcpy.c gavl-0.2.4.non-x86/gavl/memcpy.c
+--- gavl-0.2.4.orig/gavl/memcpy.c      2006-06-26 20:32:09.000000000 +0000
++++ gavl-0.2.4.non-x86/gavl/memcpy.c   2007-05-19 17:56:01.000000000 +0000
+@@ -428,11 +428,14 @@
+ {
+   unsigned long long int x;
++# if defined(ARCH_x86)
+   /* that should prevent us from trying cpuid with old cpus */
+   if( config_flags & GAVL_ACCEL_MMX ) {
+     __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
+     return x;
+-  } else {
++  } else
++#endif
++  {
+     return times(NULL);
+   }
+ }
This page took 0.092509 seconds and 4 git commands to generate.