Commits
Joshua Root authored f9d6a236c65
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 | |
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 |