]> git.pld-linux.org Git - packages/gavl.git/blob - gavl-non-x86.patch
- fix compilation on non-x86 archs
[packages/gavl.git] / gavl-non-x86.patch
1 diff -Nur gavl-0.2.4.orig/gavl/memcpy.c gavl-0.2.4.non-x86/gavl/memcpy.c
2 --- gavl-0.2.4.orig/gavl/memcpy.c       2006-06-26 20:32:09.000000000 +0000
3 +++ gavl-0.2.4.non-x86/gavl/memcpy.c    2007-05-19 17:56:01.000000000 +0000
4 @@ -428,11 +428,14 @@
5  {
6    unsigned long long int x;
7  
8 +# if defined(ARCH_x86)
9    /* that should prevent us from trying cpuid with old cpus */
10    if( config_flags & GAVL_ACCEL_MMX ) {
11      __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
12      return x;
13 -  } else {
14 +  } else
15 +#endif
16 +  {
17      return times(NULL);
18    }
19  }
This page took 0.07081 seconds and 3 git commands to generate.