16 lines
473 B
Text
16 lines
473 B
Text
|
$NetBSD: patch-aa,v 1.8 2009/04/10 09:06:20 tron Exp $
|
||
|
|
||
|
--- src/data/memory_chunk.cc.orig 2008-05-07 13:19:13.000000000 +0100
|
||
|
+++ src/data/memory_chunk.cc 2009-04-10 09:37:20.000000000 +0100
|
||
|
@@ -46,6 +46,10 @@
|
||
|
#include "torrent/exceptions.h"
|
||
|
#include "memory_chunk.h"
|
||
|
|
||
|
+#if defined(sun) || defined(__sun)
|
||
|
+extern "C" int madvise(void *addr, size_t len, int behav);
|
||
|
+#endif /* sun || __sun */
|
||
|
+
|
||
|
namespace torrent {
|
||
|
|
||
|
uint32_t MemoryChunk::m_pagesize = getpagesize();
|