aports/main/links/configure.patch
2024-07-08 08:41:59 +00:00

18 lines
536 B
Diff

This patch fixes a build failure when CC=clang.
Links builds fine without it using GCC 13, but
there's no harm in fixing this implicit-int error.
diff --git a/configure b/configure
index 354c422..88e0d53 100755
--- a/configure
+++ b/configure
@@ -1001,7 +1001,7 @@ cat > conftest.$ac_ext << EOF
#line 1004 "configure"
#include "confdefs.h"
-main(){return(0);}
+int main(){return(0);}
EOF
if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes