solaris build fixes

This commit is contained in:
Arvid Norberg 2010-03-03 07:42:51 +00:00
parent a942890e8d
commit 9d6cdb0c89
5 changed files with 15 additions and 1 deletions

View File

@ -113,6 +113,7 @@
* fixed issue with disk read cache not being cleared when removing torrents * fixed issue with disk read cache not being cleared when removing torrents
* made the DHT socket bind to the same interface as the session * made the DHT socket bind to the same interface as the session
* fixed issue where an http proxy would not be used on redirects * fixed issue where an http proxy would not be used on redirects
* Solaris build fixes
release 0.14.9 release 0.14.9

View File

@ -87,6 +87,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include <fstream> #include <fstream>
#endif #endif
#if TORRENT_COMPLETE_TYPES_REQUIRED
#include "libtorrent/peer_connection.hpp"
#endif
namespace libtorrent namespace libtorrent
{ {

View File

@ -151,6 +151,7 @@ POSSIBILITY OF SUCH DAMAGE.
// ==== SOLARIS === // ==== SOLARIS ===
#elif defined sun || defined __sun #elif defined sun || defined __sun
#define TORRENT_SOLARIS #define TORRENT_SOLARIS
#define TORRENT_COMPLETE_TYPES_REQUIRED 1
// ==== BEOS === // ==== BEOS ===
#elif defined __BEOS__ || defined __HAIKU__ #elif defined __BEOS__ || defined __HAIKU__
@ -256,6 +257,10 @@ inline int snprintf(char* buf, int len, char const* fmt, ...)
#define TORRENT_DEPRECATED #define TORRENT_DEPRECATED
#endif #endif
#ifndef TORRENT_COMPLETE_TYPES_REQUIRED
#define TORRENT_COMPLETE_TYPES_REQUIRED 0
#endif
#ifndef TORRENT_USE_RLIMIT #ifndef TORRENT_USE_RLIMIT
#define TORRENT_USE_RLIMIT 1 #define TORRENT_USE_RLIMIT 1
#endif #endif

View File

@ -163,7 +163,7 @@ namespace libtorrent
data_type m_type; data_type m_type;
#if defined(_MSC_VER) && _MSC_VER < 1310 #if (defined(_MSC_VER) && _MSC_VER < 1310) || TORRENT_COMPLETE_TYPES_REQUIRED
// workaround for msvc-bug. // workaround for msvc-bug.
// assumes sizeof(map<string, char>) == sizeof(map<string, entry>) // assumes sizeof(map<string, char>) == sizeof(map<string, entry>)
// and sizeof(list<char>) == sizeof(list<entry>) // and sizeof(list<char>) == sizeof(list<entry>)

View File

@ -74,6 +74,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/deadline_timer.hpp" #include "libtorrent/deadline_timer.hpp"
#include "libtorrent/union_endpoint.hpp" #include "libtorrent/union_endpoint.hpp"
#if TORRENT_COMPLETE_TYPES_REQUIRED
#include "libtorrent/peer_connection.hpp"
#endif
namespace libtorrent namespace libtorrent
{ {
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING #if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING