0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-18 12:44:46 +00:00
Files
packages/net/ifstat/patches/010-gcc14.patch
Rosen Penev 2b01007dd4 ifstat: fix compilation with GCC14
Need explicit int.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-10 00:01:26 -07:00

12 lines
320 B
Diff

--- a/configure
+++ b/configure
@@ -783,7 +783,7 @@ cat > conftest.$ac_ext << EOF
#line 784 "configure"
#include "confdefs.h"
-main(){return(0);}
+int main(){return(0);}
EOF
if { (eval echo configure:789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes