aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-22 00:10:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-22 01:51:29 +0200
commitd000c5ae7e375ddf45215c550e9b2b815d3677af (patch)
tree54a50e2641cfed40efce97797acee51003cf5ff7 /configure
parent1e09d9085d30f4cdf6db88aecd401ca1bfa44329 (diff)
downloadffmpeg-d000c5ae7e375ddf45215c550e9b2b815d3677af.tar.gz
configure: move code out of main of check_exec_crash()
Tested-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 454554bd52..55738d1c58 100755
--- a/configure
+++ b/configure
@@ -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
}