Files
haikuports/dev-libs/c_blosc/patches/c_blosc-1.14.4.patchset
2018-08-02 18:45:20 -04:00

23 lines
857 B
Plaintext

From 96fa0540b618a6ef8609d435eea3ca2a3cd12b83 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Thu, 7 Dec 2017 21:27:35 +0100
Subject: Build fix
diff --git a/tests/test_common.h b/tests/test_common.h
index 148a063..043a059 100644
--- a/tests/test_common.h
+++ b/tests/test_common.h
@@ -68,7 +68,7 @@ static void* blosc_test_malloc(const size_t alignment, const size_t size)
#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 _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || defined(__HAIKU__)
/* Platform does have an implementation of posix_memalign */
res = posix_memalign(&block, alignment, size);
#elif defined(__APPLE__)
--
2.16.2