Commit d000c5ae authored by Michael Niedermayer's avatar Michael Niedermayer

configure: move code out of main of check_exec_crash()

Tested-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1e09d908
......@@ -845,6 +845,9 @@ check_exec_crash(){
static void sighandler(int sig){
raise(SIGTERM);
}
int func(void){
$code
}
int main(void){
signal(SIGILL, sighandler);
signal(SIGFPE, sighandler);
......@@ -852,7 +855,7 @@ int main(void){
#ifdef SIGBUS
signal(SIGBUS, sighandler);
#endif
{ $code }
return func();
}
EOF
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment