From: Ivan Babrou Date: Tue, 2 Jan 2024 03:31:01 +0000 (-0800) Subject: configure.ac: fix failing IPv6 check due to missing return type X-Git-Tag: v3.4.0~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0dd25d4752520ed405315f1d2a8454fd507631bb;p=thirdparty%2Frsync.git configure.ac: fix failing IPv6 check due to missing return type Fixing this warning escalated to an error, resuting in no IPv6 support: ``` configure.sh:7679: checking whether to enable ipv6 configure.sh:7718: clang -o conftest -g -O2 -DHAVE_CONFIG_H -Wall -W conftest.c >&5 conftest.c:73:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main() ^ int 1 error generated. configure.sh:7718: $? = 1 configure.sh: program exited with status 1 ``` --- diff --git a/configure.ac b/configure.ac index 0d868571..57ee32f3 100644 --- a/configure.ac +++ b/configure.ac @@ -392,7 +392,7 @@ AS_HELP_STRING([--disable-ipv6],[disable to omit ipv6 support]), #include #include #include -main() +int main() { if (socket(AF_INET6, SOCK_STREAM, 0) < 0) exit(1);