Skip to content

Commit 828cda4

Browse files
bobriktridge
authored andcommitted
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 ```
1 parent a47ae6f commit 828cda4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ AS_HELP_STRING([--disable-ipv6],[disable to omit ipv6 support]),
392392
#include <stdlib.h>
393393
#include <sys/types.h>
394394
#include <sys/socket.h>
395-
main()
395+
int main()
396396
{
397397
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
398398
exit(1);

0 commit comments

Comments
 (0)