fixed build errors on Solaris

This commit is contained in:
Arvid Norberg
2009-01-27 08:24:48 +00:00
parent 37c48117b0
commit 3cdf9c87a8
26 changed files with 88 additions and 61 deletions

View File

@@ -34,6 +34,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cctype>
#include <algorithm>
#include <stdlib.h>
#include "libtorrent/config.hpp"
#include "libtorrent/http_parser.hpp"
@@ -162,7 +163,7 @@ namespace libtorrent
if (name == "content-length")
{
#ifdef WIN32
#ifdef TORRENT_WINDOWS
m_content_length = _atoi64(value.c_str());
#else
m_content_length = atoll(value.c_str());