From b0a9d632925d1461769cbf1420425069a0ed51c1 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Tue, 7 May 2019 21:54:06 +0100 Subject: [PATCH] OpenBSD build fix. As FreeBSD, does not have malloc.h aligned_alloc stricly available since C++17/C11, using the local impl. --- src/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h b/src/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h index b6d6a70a8..8acd8b389 100644 --- a/src/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h +++ b/src/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h @@ -2229,7 +2229,7 @@ remove them if not needed. #include // for std::mutex #include // for std::atomic -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__) +#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) #include // for aligned_alloc() #endif @@ -2238,7 +2238,7 @@ remove them if not needed. #define VMA_NULL nullptr #endif -#if defined(__APPLE__) || defined(__ANDROID__) +#if defined(__APPLE__) || defined(__ANDROID__) || defined(__OpenBSD__) #include void *aligned_alloc(size_t alignment, size_t size) {