Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 291229 | Differences between
and this patch

Collapse All | Expand All

(-)libtorrent-0.12.5/src/data/memory_chunk.cc (+8 lines)
Lines 46-51 Link Here
46
#include "torrent/exceptions.h"
46
#include "torrent/exceptions.h"
47
#include "memory_chunk.h"
47
#include "memory_chunk.h"
48
48
49
#ifdef __sun__
50
extern "C" int madvise(void *, size_t, int);
51
//#include <sys/mman.h>
52
//Should be the include line instead, but Solaris
53
//has an annoying bug wherein it doesn't declare
54
//madvise for C++.
55
#endif
56
49
namespace torrent {
57
namespace torrent {
50
58
51
uint32_t MemoryChunk::m_pagesize = getpagesize();
59
uint32_t MemoryChunk::m_pagesize = getpagesize();

Return to bug 291229