$OpenBSD: patch-loader_vk_loader_platform_h,v 1.4 2021/06/29 03:48:21 thfr Exp $

stub loader_platform_executable_path()

Index: loader/vk_loader_platform.h
--- loader/vk_loader_platform.h.orig
+++ loader/vk_loader_platform.h
@@ -35,7 +35,7 @@
 #include "vulkan/vk_platform.h"
 #include "vulkan/vk_sdk_platform.h"
 
-#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__)
+#if defined(__unix__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__)
 /* Linux-specific common code: */
 
 // Headers:
@@ -121,6 +121,10 @@ static inline char *loader_platform_executable_path(ch
     if (ret <= 0) return NULL;
     buffer[ret] = '\0';
     return buffer;
+}
+#elif defined(__OpenBSD__) // defined(__APPLE__)
+static inline char *loader_platform_executable_path(char *buffer, size_t size) {
+    return NULL;
 }
 #elif defined(__Fuchsia__)
 static inline char *loader_platform_executable_path(char *buffer, size_t size) { return NULL; }
