From d7e689680023e327de7e052e01e7faee30135799 Mon Sep 17 00:00:00 2001 From: Roland Stigge Date: Sun, 23 Mar 2014 09:29:37 -0700 Subject: [PATCH] ppc: fix build on certain PowerPC variants without Altivec --- common/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/cpu.c b/common/cpu.c index d5502ece..837de89f 100644 --- a/common/cpu.c +++ b/common/cpu.c @@ -338,6 +338,9 @@ uint32_t x264_cpu_detect( void ) uint32_t x264_cpu_detect( void ) { +#ifdef __NO_FPRS__ + return 0; +#else static void (*oldsig)( int ); oldsig = signal( SIGILL, sigill_handler ); @@ -357,6 +360,7 @@ uint32_t x264_cpu_detect( void ) signal( SIGILL, oldsig ); return X264_CPU_ALTIVEC; +#endif } #endif -- 2.40.0