On 05/16/2013 11:08 PM, Alex Smith wrote:
> Originally commit 71d6b46849ca1c04d5ec7b74c9e48bdce68d5ebe in ffmpeg.
> 
> Certain tests, specifically EBP availability when using ICL, would crash
> prior to this change.
> ---
>  configure | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/configure b/configure
> index cbde7c0..c65e0e9 100755
> --- a/configure
> +++ b/configure
> @@ -908,9 +908,10 @@ check_exec_crash(){
>  static void sighandler(int sig){
>      raise(SIGTERM);
>  }
> -int foo(void){
> +int func(void){
>      $code
>  }
> +int (*func_ptr)(void) = func;
>  int main(void){
>      signal(SIGILL, sighandler);
>      signal(SIGFPE, sighandler);
> @@ -918,7 +919,7 @@ int main(void){
>  #ifdef SIGBUS
>      signal(SIGBUS, sighandler);
>  #endif
> -    foo();
> +    return func_ptr();
>  }
>  EOF
>  }
> 

Adding return foo(); isn't enough?

lu

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to