ifstat: fix compilation with GCC14

Need explicit int.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2024-06-09 18:25:28 -07:00
parent de110a6e37
commit 2b01007dd4
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
--- 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