mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
configure: Fix catch() callback function declaration in two compile tests
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31548 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
485b9313fe
commit
4fbe3768b8
4
configure
vendored
4
configure
vendored
@ -1614,7 +1614,7 @@ if x86 && test "$_runtime_cpudetection" = no ; then
|
||||
cat > $TMPC <<EOF
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
void catch() { exit(1); }
|
||||
void catch(void) { exit(1); }
|
||||
int main(void) {
|
||||
signal(SIGILL, catch);
|
||||
__asm__ volatile ("$3":::"memory"); return 0;
|
||||
@ -4870,7 +4870,7 @@ if test "$_gif" = yes ; then
|
||||
cat > $TMPC << EOF
|
||||
#include <signal.h>
|
||||
#include <gif_lib.h>
|
||||
void catch() { exit(1); }
|
||||
void catch(void) { exit(1); }
|
||||
int main(void) {
|
||||
signal(SIGSEGV, catch); // catch segfault
|
||||
printf("EGifPutExtensionFirst is at address %p\n", EGifPutExtensionFirst);
|
||||
|
Loading…
Reference in New Issue
Block a user