From 5e14926c8979c81d899152b67f29b7082f304e19 Mon Sep 17 00:00:00 2001 From: sparky Date: Sat, 19 May 2007 18:02:22 +0000 Subject: [PATCH] - fix compilation on non-x86 archs Changed files: gavl-non-x86.patch -> 1.1 --- gavl-non-x86.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gavl-non-x86.patch diff --git a/gavl-non-x86.patch b/gavl-non-x86.patch new file mode 100644 index 0000000..bc2cf9c --- /dev/null +++ b/gavl-non-x86.patch @@ -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); + } + } -- 2.44.0