1 | | this little patch does the right thing. blosc builds, passes all but 4 of the tests on 10.5 PPC. It didn't actually run the benchmark suite, so I didn't prove that this patch actually worked, however. But the tests and benchmark suite aren't installed by default anyway. |
2 | | {{{ |
3 | | diff --git bench/bench.c bench/bench.c |
4 | | index 39d6aeb..3bc617f 100644 |
5 | | --- bench/bench.c |
6 | | +++ bench/bench.c |
7 | | @@ -121,6 +121,18 @@ double get_usec_chunk(blosc_timestamp_t last, blosc_timestamp_t current, int nit |
8 | | return elapsed_usecs / (double)(niter * nchunks); |
9 | | } |
10 | | |
11 | | +#if defined __APPLE__ && MAC_OS_X_VERSION_MAX_ALLOWED < 1060 |
12 | | +#include <sys/errno.h> |
13 | | +int posix_memalign(void **memptr, size_t alignment, size_t size) |
14 | | +{ |
15 | | + *memptr = valloc(size); |
16 | | + if (*memptr == NULL) { |
17 | | + return ENOMEM; |
18 | | + } |
19 | | + return 0; |
20 | | +} |
21 | | +#endif |
22 | | + |
23 | | /* Define posix_memalign for Windows */ |
24 | | #if defined(_WIN32) |
25 | | #include <malloc.h> |
26 | | }}} |
27 | | |
28 | | You can check this out here if you want <https://github.com/kencu/LeopardPorts/tree/master/archivers/blosc>. If it works for you as well, we can put together a PR for it. |
29 | | |
30 | | Best, K |
| 1 | I put together a little patch for this. You can check this out here if you want <https://github.com/kencu/LeopardPorts/tree/master/archivers/blosc>. If it works for you as well, we can put together a PR for it. |