fix simulation build

This commit is contained in:
arvidn 2015-09-06 22:52:25 -04:00
parent 9cb4e3d1ca
commit 379fd8ce81
1 changed files with 5 additions and 3 deletions

View File

@ -147,7 +147,10 @@ namespace libtorrent
bool supports_ipv6()
{
#if TORRENT_USE_IPV6
#if defined TORRENT_BUILD_SIMULATOR || !TORRENT_USE_IPV6
return false;
#else
#ifdef TORRENT_WINDOWS
TORRENT_TRY {
error_code ec;
@ -161,8 +164,7 @@ namespace libtorrent
test.open(tcp::v6(), ec);
return !bool(ec);
#endif // WINDOWS
#else
return false;
#endif
}