Skip to content

Commit 02b11b2

Browse files
nehebliudf0716
authored andcommitted
udptunnel: fix compilation with GCC14
Missing int in main. Signed-off-by: Rosen Penev <rosenp@gmail.com>
1 parent 17cc370 commit 02b11b2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

net/udptunnel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=udptunnel
44
PKG_VERSION:=1.1
5-
PKG_RELEASE:=1
5+
PKG_RELEASE:=2
66

77
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
88
PKG_SOURCE_URL:=http://www.cs.columbia.edu/~lennox/udptunnel

net/udptunnel/patches/010-gcc14.patch

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/configure
2+
+++ b/configure
3+
@@ -905,7 +905,7 @@ cat > conftest.$ac_ext << EOF
4+
#line 906 "configure"
5+
#include "confdefs.h"
6+
7+
-main(){return(0);}
8+
+int main(){return(0);}
9+
EOF
10+
if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11+
ac_cv_prog_cc_works=yes

0 commit comments

Comments
 (0)