Commits

Joshua Root authored f9d6a236c65
libtorrent, libtorrent-devel: forgot to cast the valloc return value

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

net/libtorrent/files/no_posix_memalign.patch

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

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

Add shortcut