From f20b896c95a482430e2d19ef11737276a4cb2bb5 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 15 May 2024 19:38:59 -0700 Subject: [PATCH] udptunnel: fix compilation with GCC14 Missing int in main. Signed-off-by: Rosen Penev --- net/udptunnel/Makefile | 2 +- net/udptunnel/patches/010-gcc14.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 net/udptunnel/patches/010-gcc14.patch diff --git a/net/udptunnel/Makefile b/net/udptunnel/Makefile index e228261b1..0b324ae62 100644 --- a/net/udptunnel/Makefile +++ b/net/udptunnel/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=udptunnel PKG_VERSION:=1.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.cs.columbia.edu/~lennox/udptunnel diff --git a/net/udptunnel/patches/010-gcc14.patch b/net/udptunnel/patches/010-gcc14.patch new file mode 100644 index 000000000..9cc7f1343 --- /dev/null +++ b/net/udptunnel/patches/010-gcc14.patch @@ -0,0 +1,11 @@ +--- a/configure ++++ b/configure +@@ -905,7 +905,7 @@ cat > conftest.$ac_ext << EOF + #line 906 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(){return(0);} + EOF + if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes