diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-09 12:22:54 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-09 12:22:54 +0200 |
commit | 14d1a63dc30aa4590c30b24b824b4cc76e869183 (patch) | |
tree | 34fa737377817b0378acde4997b1d8ec189699c9 | |
parent | e198fcdc4ace3f3c61f294e25a62a0aa308a1973 (diff) | |
download | xine-lib-14d1a63dc30aa4590c30b24b824b4cc76e869183.tar.gz xine-lib-14d1a63dc30aa4590c30b24b824b4cc76e869183.tar.bz2 |
Define sigill_return and sigill_handler only on x86, as there is where they only are used.
-rw-r--r-- | src/xine-utils/cpu_accel.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xine-utils/cpu_accel.c b/src/xine-utils/cpu_accel.c index b32733fba..ddada94d3 100644 --- a/src/xine-utils/cpu_accel.c +++ b/src/xine-utils/cpu_accel.c @@ -24,8 +24,6 @@ #include <stdio.h> #include <stdlib.h> #include <inttypes.h> -#include <signal.h> -#include <setjmp.h> #include <dlfcn.h> #if defined (__SVR4) && defined (__sun) @@ -42,11 +40,16 @@ #if defined(ARCH_X86) || defined(ARCH_X86_64) +#ifndef __x86_64__ +#include <signal.h> +#include <setjmp.h> + static jmp_buf sigill_return; static void sigill_handler (int n) { longjmp(sigill_return, 1); } +#endif static uint32_t arch_accel (void) { |