mirror of
https://github.com/curl/curl.git
synced 2025-01-24 14:15:18 +08:00
configure: fix no default int compile error in ipv6 detection
Closes #12607
This commit is contained in:
parent
0af61bffb1
commit
ae75db3527
@ -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…
Reference in New Issue
Block a user