pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/41531: net/libtorrent fails to compile on solaris 10
>Number: 41531
>Category: pkg
>Synopsis: net/libtorrent fails to compile on solaris 10
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 03 12:45:01 +0000 2009
>Originator: Mikko Kortelainen
>Release: none
>Organization:
home
>Environment:
SunOS flexnet 5.10 Generic sun4u sparc SUNW,Netra-T4
>Description:
net/libtorrent fails to compile on solaris 10: c++ scope does not declare
madvice();
>How-To-Repeat:
try to build net/libtorrent on solaris10, fix is dirty but
http://libtorrent.rakshasa.no/ticket/1003
>Fix:
--- /export/home/kordex/libtorrent-0.12.2/src/data/memory_chunk.cc
2008-05-07 15:19:13.000000000 +0300
+++ memory_chunk.cc 2009-04-03 13:40:08.160680000 +0300
@@ -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();
Home |
Main Index |
Thread Index |
Old Index