Files
ports/devel/smpeg/patches/patch-configure
T
claudio 5d4a528bac Fix configure script to prevent -Wimplicit-int errors
This replaces
	main(){return(0);}
with the proper form of
	int main(void){return(0);}

OK tb@
2025-12-05 08:02:43 +00:00

25 lines
672 B
Plaintext

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 <<EOF
#line 2003 "configure"
#include "confdefs.h"
+#include <sys/types.h>
#include <sys/socket.h>
int main() {
-socklen_t len = 42; return len;
+socklen_t x;
; return 0; }
EOF
if { (eval echo configure:2010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then