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(); |