pkgsrc/net/libtorrent/patches/patch-aa
tron 8d87aa23a5 Add two patches taken from "xnet.fi" to fix the build under SunOS 5.11
(and eventually older versions). Problem reported by Tom Hensel in
private e-mail.
2009-04-10 09:06:20 +00:00

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