Skip to content

Commit

Permalink
udptunnel: fix compilation with GCC14
Browse files Browse the repository at this point in the history
Missing int in main.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb authored and liudf0716 committed May 27, 2024
1 parent 17cc370 commit 02b11b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/udptunnel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions net/udptunnel/patches/010-gcc14.patch
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 02b11b2

Please sign in to comment.