From a97dd5cded0d9e4b0391054e7c839e368eabe2c3 Mon Sep 17 00:00:00 2001 From: kub Date: Wed, 29 Jul 2020 20:41:07 +0200 Subject: [PATCH] configure, fix for newer gcc --- configure | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 6860eb70..786d249a 100755 --- a/configure +++ b/configure @@ -278,7 +278,7 @@ esac # basic compiler test cat > $TMPC < $TMPC < - int main(void) { uncompress(0, 0, 0, 0); } + int main (int argc, char *argv[]) { uncompress(0, 0, 0, 0); } EOF compile_binary "$@" } @@ -298,7 +298,7 @@ check_libpng() { cat > $TMPC < - void main() { png_init_io(0, 0); } + int main (int argc, char *argv[]) { png_init_io(0, 0); } EOF # compile_binary compile_object @@ -309,7 +309,7 @@ check_oss() cat > $TMPC < #include - void main() { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); } + int main (int argc, char *argv[]) { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); } EOF compile_binary } @@ -318,7 +318,7 @@ check_alsa() { cat > $TMPC < - void main() { snd_pcm_open(0, 0, 0, 0); } + int main (int argc, char *argv[]) { snd_pcm_open(0, 0, 0, 0); } EOF compile_binary "$@" } @@ -327,7 +327,7 @@ check_sdl() { cat > $TMPC < - void main() { SDL_OpenAudio(0, 0); } + int main (int argc, char *argv[]) { SDL_OpenAudio(0, 0); } EOF compile_binary "$@" } @@ -336,7 +336,7 @@ check_libavcodec() { cat > $TMPC < - void main() { avcodec_decode_audio3(0, 0, 0, 0); } + int main (int argc, char *argv[]) { avcodec_decode_audio3(0, 0, 0, 0); } EOF compile_object "$@" } -- 2.39.5