fix simulation build
This commit is contained in:
parent
9cb4e3d1ca
commit
379fd8ce81
|
@ -147,7 +147,10 @@ namespace libtorrent
|
||||||
|
|
||||||
bool supports_ipv6()
|
bool supports_ipv6()
|
||||||
{
|
{
|
||||||
#if TORRENT_USE_IPV6
|
#if defined TORRENT_BUILD_SIMULATOR || !TORRENT_USE_IPV6
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
|
|
||||||
#ifdef TORRENT_WINDOWS
|
#ifdef TORRENT_WINDOWS
|
||||||
TORRENT_TRY {
|
TORRENT_TRY {
|
||||||
error_code ec;
|
error_code ec;
|
||||||
|
@ -161,8 +164,7 @@ namespace libtorrent
|
||||||
test.open(tcp::v6(), ec);
|
test.open(tcp::v6(), ec);
|
||||||
return !bool(ec);
|
return !bool(ec);
|
||||||
#endif // WINDOWS
|
#endif // WINDOWS
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue