merged fixes from RC_1_0

This commit is contained in:
Arvid Norberg 2014-11-27 03:05:06 +00:00
parent f73fe335e2
commit 1c91903c9c
5 changed files with 8 additions and 12 deletions

View File

@ -255,8 +255,10 @@ endif()
if (WIN32)
target_link_libraries(torrent-rasterbar wsock32 ws2_32)
add_definitions(-D_WIN32_WINNT=0x0500)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") # multicore compilation
add_definitions(-D_WIN32_WINNT=0x0600)
if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") # multicore compilation
endif()
endif()
if (encryption)

View File

@ -121,10 +121,6 @@ EXTRA_DIST = \
Jamroot.jam \
CMakeLists.txt \
LICENSE \
bindings/python/compile_flags \
bindings/python/link_flags \
libtorrent-rasterbar.pc \
libtorrent-rasterbar-cmake.pc \
$(DOCS_PAGES) \
$(DOCS_IMAGES) \
$(ED25519_SOURCE)

View File

@ -7,6 +7,7 @@ EXTRA_DIST = \
simple_client.py \
make_torrent.py \
src/alert.cpp \
src/bytes.hpp \
src/big_number.cpp \
src/converters.cpp \
src/create_torrent.cpp \

View File

@ -68,10 +68,10 @@ if '--bjam' in sys.argv or ldflags == None or extra_cmd == None:
toolset = ' msvc-9.0'
file_ext = '.pyd'
parallell_builds = ' -j%d' % multiprocessing.cpu_count()
parallel_builds = ' -j%d' % multiprocessing.cpu_count()
# build libtorrent using bjam and build the installer with distutils
cmdline = 'bjam boost=source link=static boost-link=static release optimization=space stage_module --abbreviate-paths' + toolset + parallell_builds
cmdline = 'bjam boost=source link=static boost-link=static release optimization=space stage_module --abbreviate-paths' + toolset + parallel_builds
print(cmdline)
if os.system(cmdline) != 0:
print('build failed')

View File

@ -260,11 +260,8 @@ namespace libtorrent
ec = error_code();
// if_nametoindex was introduced in vista
// and apparently msvc-9.0 doesn't support this, even though
// the _WIN32_WINNT version indicates vista+
#if TORRENT_USE_IPV6 \
&& (!defined TORRENT_WINDOWS \
|| (_WIN32_WINNT >= _WIN32_WINNT_VISTA && _MSC_VER > 1500)) \
&& (!defined TORRENT_WINDOWS || _WIN32_WINNT >= 0x0600) \
&& !defined TORRENT_MINGW
if (i->interface_address.is_v6() &&