diff --git a/devel/cgdb/patches/patch-config_readline_check_version_m4 b/devel/cgdb/patches/patch-config_readline_check_version_m4 index c5c27db8c2f..bc87bfb09ed 100644 --- a/devel/cgdb/patches/patch-config_readline_check_version_m4 +++ b/devel/cgdb/patches/patch-config_readline_check_version_m4 @@ -10,3 +10,12 @@ Index: config/readline_check_version.m4 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" +@@ -86,7 +86,7 @@ AC_CACHE_VAL(ac_cv_rl_version, + #include + #include + +-main() ++int main(void) + { + FILE *fp; + fp = fopen("conftest.rlv", "w"); diff --git a/devel/sdlmm/patches/patch-configure b/devel/sdlmm/patches/patch-configure index bacd82c7c64..4fe480b8c29 100644 --- a/devel/sdlmm/patches/patch-configure +++ b/devel/sdlmm/patches/patch-configure @@ -1,5 +1,15 @@ ---- configure.orig Mon Aug 13 21:39:00 2001 -+++ configure Sun Feb 5 11:36:41 2006 +Index: configure +--- configure.orig ++++ configure +@@ -1178,7 +1178,7 @@ cat > conftest.$ac_ext << EOF + #line 1179 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(void){return(0);} + EOF + if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes @@ -5876,7 +5876,6 @@ fi echo "$ac_t""no" 1>&6 fi diff --git a/devel/smpeg/patches/patch-configure b/devel/smpeg/patches/patch-configure index 8292e24e1d6..90947cb7644 100644 --- a/devel/smpeg/patches/patch-configure +++ b/devel/smpeg/patches/patch-configure @@ -1,5 +1,15 @@ ---- configure.orig Sat Jan 7 17:32:32 2012 -+++ configure Sat Jan 7 17:33:52 2012 +Index: configure +--- configure.orig ++++ configure +@@ -1055,7 +1055,7 @@ cat > conftest.$ac_ext << EOF + #line 1056 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(void){return(0);} + EOF + if { (eval echo configure:1061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes @@ -2001,9 +2001,10 @@ else cat > conftest.$ac_ext < conftest.$ac_ext << EOF + #line 907 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(void){return(0);} + EOF + if { (eval echo configure:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes @@ -1234,11 +1234,11 @@ fi XML_CONFIG_ERROR=" *** You need to have libxml2 installed to use clo++