mirror of
https://github.com/curl/curl.git
synced 2026-07-27 01:27:15 +03:00
configure: fix no default int compile error in ipv6 detection
Closes #12607
This commit is contained in:
parent
0af61bffb1
commit
ae75db3527
1 changed files with 3 additions and 6 deletions
|
|
@ -1655,15 +1655,12 @@ AS_HELP_STRING([--disable-ipv6],[Disable IPv6 support]),
|
|||
# include <netinet/in6.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <stdlib.h> /* for exit() */
|
||||
main()
|
||||
|
||||
int main(void)
|
||||
{
|
||||
struct sockaddr_in6 s;
|
||||
(void)s;
|
||||
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
|
||||
exit(1);
|
||||
else
|
||||
exit(0);
|
||||
return socket(AF_INET6, SOCK_STREAM, 0) < 0;
|
||||
}
|
||||
]])
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue