aboutsummaryrefslogtreecommitdiff
path: root/devel/electron18/files/patch-third__party_vulkan__memory__allocator_include_vk__mem__alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron18/files/patch-third__party_vulkan__memory__allocator_include_vk__mem__alloc.h')
-rw-r--r--devel/electron18/files/patch-third__party_vulkan__memory__allocator_include_vk__mem__alloc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron18/files/patch-third__party_vulkan__memory__allocator_include_vk__mem__alloc.h b/devel/electron18/files/patch-third__party_vulkan__memory__allocator_include_vk__mem__alloc.h
new file mode 100644
index 000000000000..c44cb289dfab
--- /dev/null
+++ b/devel/electron18/files/patch-third__party_vulkan__memory__allocator_include_vk__mem__alloc.h
@@ -0,0 +1,11 @@
+--- third_party/vulkan_memory_allocator/include/vk_mem_alloc.h.orig 2022-05-19 03:49:59 UTC
++++ third_party/vulkan_memory_allocator/include/vk_mem_alloc.h
+@@ -2503,7 +2503,7 @@ void *vma_aligned_alloc(size_t alignment, size_t size)
+
+ return memalign(alignment, size);
+ }
+-#elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC))
++#elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC)) || defined(__OpenBSD__) || defined(__FreeBSD__)
+ #include <cstdlib>
+
+ #if defined(__APPLE__)