Mon May 29 16:38:23 2023 UTC ()
blosc2: fix build on NetBSD


(wiz)
diff -r1.1 -r1.2 pkgsrc/devel/blosc2/distinfo
diff -r0 -r1.1 pkgsrc/devel/blosc2/patches/patch-tests_test__common.h

cvs diff -r1.1 -r1.2 pkgsrc/devel/blosc2/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/blosc2/distinfo 2023/05/22 11:24:13 1.1
+++ pkgsrc/devel/blosc2/distinfo 2023/05/29 16:38:22 1.2
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.1 2023/05/22 11:24:13 adam Exp $ 1$NetBSD: distinfo,v 1.2 2023/05/29 16:38:22 wiz Exp $
2 2
3BLAKE2s (blosc2-2.9.2.tar.gz) = c4188540a26eaaf7debe04f1ab518fa062ae9e9b57a45310e08dae8823873af3 3BLAKE2s (blosc2-2.9.2.tar.gz) = c4188540a26eaaf7debe04f1ab518fa062ae9e9b57a45310e08dae8823873af3
4SHA512 (blosc2-2.9.2.tar.gz) = f44346bf3ce8824dbe23d33b688d6b2063406011c066cc14ea3319537c17ecc5c1250c30d77e50696aad9932e0dd10fc95ab4f2c295208808446525636314522 4SHA512 (blosc2-2.9.2.tar.gz) = f44346bf3ce8824dbe23d33b688d6b2063406011c066cc14ea3319537c17ecc5c1250c30d77e50696aad9932e0dd10fc95ab4f2c295208808446525636314522
5Size (blosc2-2.9.2.tar.gz) = 2790821 bytes 5Size (blosc2-2.9.2.tar.gz) = 2790821 bytes
 6SHA1 (patch-tests_test__common.h) = 8e0389248203edfe2358be0a220a8b958cb6c689

File Added: pkgsrc/devel/blosc2/patches/patch-tests_test__common.h
$NetBSD: patch-tests_test__common.h,v 1.1 2023/05/29 16:38:23 wiz Exp $

--- tests/test_common.h.orig	2023-05-18 16:04:38.000000000 +0000
+++ tests/test_common.h
@@ -72,7 +72,7 @@ inline static void* blosc_test_malloc(co
 #elif defined(_WIN32)
   /* A (void *) cast needed for avoiding a warning with MINGW :-/ */
   block = (void *)_aligned_malloc(size, alignment);
-#elif _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
+#elif defined(__NetBSD__) || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
   /* Platform does have an implementation of posix_memalign */
   res = posix_memalign(&block, alignment, size);
 #elif defined(__APPLE__)