$OpenBSD: patch-layers_vk_mem_alloc_h,v 1.2 2020/07/07 08:08:08 thfr Exp $

Index: layers/vk_mem_alloc.h
--- layers/vk_mem_alloc.h.orig
+++ layers/vk_mem_alloc.h
@@ -3180,7 +3180,7 @@ void *aligned_alloc(size_t alignment, size_t size)
 
     return memalign(alignment, size);
 }
-#elif defined(__APPLE__) || defined(__ANDROID__)
+#elif defined(__APPLE__) || defined(__ANDROID__) || defined(__unix__)
 #  define ALIGNED_ALLOC_WITH_POSIX_MEMALIGN
 #elif defined(__GNU_LIBRARY__)
 #  if !defined(__GLIBC_PREREQ) || !__GLIBC_PREREQ(2, 16)
