Another round of configure files that break because of -Wimplicit-int
and the script using 'main() { return 0; }'.

gmrun is maintained by kili@ so I cc-ed him.
-- 
:wq Claudio


Index: games/xwelltris/patches/patch-configure
===================================================================
RCS file: games/xwelltris/patches/patch-configure
diff -N games/xwelltris/patches/patch-configure
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ games/xwelltris/patches/patch-configure     6 Jan 2026 14:17:46 -0000
@@ -0,0 +1,12 @@
+Index: configure
+--- configure.orig
++++ configure
+@@ -716,7 +716,7 @@ cat > conftest.$ac_ext << EOF
+ #line 717 "configure"
+ #include "confdefs.h"
+ 
+-main(){return(0);}
++int main(void){return(0);}
+ EOF
+ if { (eval echo configure:722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && 
test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes
Index: x11/fleditor/patches/patch-configure
===================================================================
RCS file: /cvs/ports/x11/fleditor/patches/patch-configure,v
diff -u -p -r1.8 patch-configure
--- x11/fleditor/patches/patch-configure        11 Mar 2022 20:15:30 -0000      
1.8
+++ x11/fleditor/patches/patch-configure        6 Jan 2026 14:17:46 -0000
@@ -1,5 +1,6 @@
---- configure.orig     Mon Apr 22 18:23:58 2002
-+++ configure  Sat May 22 16:29:40 2010
+Index: configure
+--- configure.orig
++++ configure
 @@ -20,7 +20,7 @@ ac_help="$ac_help
  ac_help="$ac_help
    --with-fltk=DIR         fltk root (for lib and include) 
[default=/usr/local]"
@@ -17,6 +18,15 @@
  # Extract the first word of "gcc", so it can be a program name with args.
  set dummy gcc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+@@ -661,7 +662,7 @@ cat > conftest.$ac_ext << EOF
+ #line 663 "configure"
+ #include "confdefs.h"
+ 
+-main(){return(0);}
++int main(void){return(0);}
+ EOF
+ if { (eval echo configure:668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && 
test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes
 @@ -997,7 +998,7 @@ else
  fi
  
Index: x11/flwm/patches/patch-configure
===================================================================
RCS file: /cvs/ports/x11/flwm/patches/patch-configure,v
diff -u -p -r1.5 patch-configure
--- x11/flwm/patches/patch-configure    11 Mar 2022 20:15:30 -0000      1.5
+++ x11/flwm/patches/patch-configure    6 Jan 2026 14:17:46 -0000
@@ -1,11 +1,21 @@
---- configure.orig     Wed Jan  5 11:14:02 2000
-+++ configure  Fri Apr 28 01:18:56 2017
+Index: configure
+--- configure.orig
++++ configure
+@@ -612,7 +612,7 @@ cross_compiling=$ac_cv_prog_cc_cross
+ cat > conftest.$ac_ext <<EOF
+ #line 614 "configure"
+ #include "confdefs.h"
+-main(){return(0);}
++int main(void){return(0);}
+ EOF
+ if { (eval echo configure:618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && 
test -s conftest; then
+   ac_cv_prog_cc_works=yes
 @@ -738,7 +738,7 @@ cross_compiling=$ac_cv_prog_cxx_cross
  cat > conftest.$ac_ext <<EOF
  #line 740 "configure"
  #include "confdefs.h"
 -main(){return(0);}
-+int main(){return(0);}
++int main(void){return(0);}
  EOF
  if { (eval echo configure:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && 
test -s conftest; then
    ac_cv_prog_cxx_works=yes
Index: x11/gmrun/patches/patch-configure
===================================================================
RCS file: x11/gmrun/patches/patch-configure
diff -N x11/gmrun/patches/patch-configure
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ x11/gmrun/patches/patch-configure   6 Jan 2026 14:17:53 -0000
@@ -0,0 +1,12 @@
+Index: configure
+--- configure.orig
++++ configure
+@@ -1007,7 +1007,7 @@ cat > conftest.$ac_ext << EOF
+ #line 1008 "configure"
+ #include "confdefs.h"
+ 
+-main(){return(0);}
++int main(void){return(0);}
+ EOF
+ if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 
&& test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes

Reply via email to