diff options
author | minskim <minskim@pkgsrc.org> | 2018-05-13 03:22:33 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2018-05-13 03:22:33 +0000 |
commit | 6f97cdbcfccc49c9fdfb3761dc429c069edba44c (patch) | |
tree | 7415fa8ee2494ff5734aadbf224363100418896e /devel/blosc | |
parent | c8ce10124bd2376e0c0e39e82bf3ef5f98a56012 (diff) | |
download | pkgsrc-6f97cdbcfccc49c9fdfb3761dc429c069edba44c.tar.gz |
devel/blosc: Make this package build on Darwin again
test_common.h has a seperate #elif branch to handle Darwin. Let blosc
use it on Darwin, rather than the C11 branch.
Diffstat (limited to 'devel/blosc')
-rw-r--r-- | devel/blosc/distinfo | 4 | ||||
-rw-r--r-- | devel/blosc/patches/patch-tests_test__common.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/devel/blosc/distinfo b/devel/blosc/distinfo index cad3b5af8a8..1795eea7406 100644 --- a/devel/blosc/distinfo +++ b/devel/blosc/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.5 2018/05/12 14:04:00 maya Exp $ +$NetBSD: distinfo,v 1.6 2018/05/13 03:22:33 minskim Exp $ SHA1 (blosc-1.14.2.tar.gz) = ba8bc63c2f0cdc62077a45b5e44216abd098020a RMD160 (blosc-1.14.2.tar.gz) = 4e75ba5f5cee49410cde42e0bef75d2f7e3d78d8 SHA512 (blosc-1.14.2.tar.gz) = fb0346e3c2c6101d17963771643a114302034a5389e2ffd9498c6b6367fe6f138ec59edbf039f89a57ce44a63e1f70324ad3906a39884ecc9d54ee2987a1b39c Size (blosc-1.14.2.tar.gz) = 759731 bytes SHA1 (patch-CMakeLists.txt) = 70dfc44c1541b1fccd200905acbd16e17a9313e1 -SHA1 (patch-tests_test__common.h) = a5f7e117c5de05059203a79dda9b4f1fbd850b3b +SHA1 (patch-tests_test__common.h) = 2eb2b756bcb67453de6fe526c31a974940098856 diff --git a/devel/blosc/patches/patch-tests_test__common.h b/devel/blosc/patches/patch-tests_test__common.h index fe031d26012..98cdc76cd37 100644 --- a/devel/blosc/patches/patch-tests_test__common.h +++ b/devel/blosc/patches/patch-tests_test__common.h @@ -1,4 +1,4 @@ -$NetBSD: patch-tests_test__common.h,v 1.3 2018/05/12 14:04:00 maya Exp $ +$NetBSD: patch-tests_test__common.h,v 1.4 2018/05/13 03:22:33 minskim Exp $ Use posix_memalign on SunOS with __EXTENSIONS__. Use a standard C11 test. @@ -16,7 +16,7 @@ behaviour (C11 7.22.3.1). +#if _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || defined(__EXTENSIONS__) + /* Platform does have an implementation of posix_memalign */ + res = posix_memalign(&block, alignment, size); -+#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L ++#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__APPLE__) /* C11 aligned allocation. 'size' must be a multiple of the alignment. */ block = aligned_alloc(alignment, size); #elif defined(_WIN32) |