workaround bug in asio in boost-1.39

This commit is contained in:
Arvid Norberg 2009-06-27 19:30:15 +00:00
parent 277262b9b0
commit 8b1e55d28a
3 changed files with 8 additions and 1 deletions

View File

@ -157,6 +157,9 @@ endif (NOT Boost_VERSION LESS 103500)
include_directories(${Boost_INCLUDE_DIR})
target_link_libraries(torrent-rasterbar ${Boost_LIBRARIES})
# this works around a bug in asio in boost-1.39
add_definitions(-DBOOST_ASIO_HASH_MAP_BUCKETS=1021)
if (WIN32)
target_link_libraries(torrent-rasterbar wsock32 ws2_32)
endif (WIN32)

View File

@ -449,6 +449,8 @@ local usage-requirements =
<toolset>gcc:<cflags>-Wno-missing-braces
<boost>system:<cxxflags>$(CXXFLAGS)
<boost>system:<linkflags>$(LDFLAGS)
# this works around a bug in asio in boost-1.39
<define>BOOST_ASIO_HASH_MAP_BUCKETS=1021
<tag>@tag
;

View File

@ -172,7 +172,9 @@ AC_ARG_WITH(
[[logging=none]]
)
COMPILETIME_OPTIONS=""
# this works around a bug in asio in boost-1.39
COMPILETIME_OPTIONS="-DBOOST_ASIO_HASH_MAP_BUCKETS=1024"
dnl Check the value for the --with-logging switch
AC_MSG_CHECKING([what form of logging to use])
case "$logging" in