Commits

Joshua Root authored cbfe1fcb7f4
libtorrent, libtorrent-devel: use valloc when posix_memalign is not available (https://trac.macports.org/ticket/27289), correct license

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@85232 d073be05-634f-4543-b044-5fe20cf6d1d6
No tags

net/libtorrent/files/no_posix_memalign.patch

Added
1 +--- rak/allocators.h.orig 2011-04-05 20:25:36.000000000 +1000
2 ++++ rak/allocators.h 2011-10-12 11:24:21.000000000 +1100
3 +@@ -77,8 +77,11 @@ public:
4 +
5 + static pointer alloc_size(size_type size) {
6 + pointer ptr = NULL;
7 ++#ifdef HAVE_POSIX_MEMALIGN
8 + int __UNUSED result = posix_memalign((void**)&ptr, LT_SMP_CACHE_BYTES, size);
9 +-
10 ++#else
11 ++ ptr = valloc(size);
12 ++#endif
13 + return ptr;
14 + }
15 +

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut