Skip to content

Commit

Permalink
configure.ac: fix failing IPv6 check due to missing return type
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
bobrik authored and tridge committed Apr 5, 2024
1 parent a47ae6f commit 828cda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ AS_HELP_STRING([--disable-ipv6],[disable to omit ipv6 support]),
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
main()
int main()
{
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
exit(1);
Expand Down

0 comments on commit 828cda4

Please sign in to comment.