summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-14 13:49:08 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:44 +0200
commita22c69b9801ab4711fb9e740c348f826e00ac7f2 (patch)
tree71398d40c19c4b6e8aa8855704474885a6a769bb /configure
parentc625cec1f83bebccf9cbc42996f08f39e66a8663 (diff)
downloadmpv-a22c69b9801ab4711fb9e740c348f826e00ac7f2.tar.bz2
mpv-a22c69b9801ab4711fb9e740c348f826e00ac7f2.tar.xz
configure: use correct arguments in signal handler tests
Give signal handler function in test programs correct argument list. This avoids a number of warnings from those test programs. patch by Giorgio, mywing81 gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31735 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 29455048b5..ea836594e2 100755
--- a/configure
+++ b/configure
@@ -1646,7 +1646,7 @@ if x86 && test "$_runtime_cpudetection" = no ; then
cat > $TMPC <<EOF
#include <stdlib.h>
#include <signal.h>
-void catch(void) { exit(1); }
+void catch(int sig) { exit(1); }
int main(void) {
signal(SIGILL, catch);
__asm__ volatile ("$3":::"memory"); return 0;
@@ -4878,7 +4878,7 @@ if test "$_gif" = yes ; then
cat > $TMPC << EOF
#include <signal.h>
#include <gif_lib.h>
-void catch(void) { exit(1); }
+void catch(int sig) { exit(1); }
int main(void) {
signal(SIGSEGV, catch); // catch segfault
printf("EGifPutExtensionFirst is at address %p\n", EGifPutExtensionFirst);