From 2d04b71e5c77a9956bf00b2771e70d4e4aebcb3c Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 31 Aug 2022 15:56:19 -0400 Subject: [PATCH] loader: Add stub function for OpenBSD executable path --- loader/vk_loader_platform.h | 2 +- tests/framework/test_util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h index 8ad97545..ebfa2ebf 100644 --- a/loader/vk_loader_platform.h +++ b/loader/vk_loader_platform.h @@ -280,7 +280,7 @@ static inline char *loader_platform_executable_path(char *buffer, size_t size) { return buffer; } -#elif defined(__Fuchsia__) +#elif defined(__Fuchsia__) || defined(__OpenBSD__) static inline char *loader_platform_executable_path(char *buffer, size_t size) { return NULL; } #elif defined(__QNXNTO__) diff --git a/tests/framework/test_util.h b/tests/framework/test_util.h index d9f4d2bd..70f8cfa4 100644 --- a/tests/framework/test_util.h +++ b/tests/framework/test_util.h @@ -936,7 +936,7 @@ static inline std::string test_platform_executable_path() { return buffer; } -#elif defined(__Fuchsia__) +#elif defined(__Fuchsia__) || defined(__OpenBSD__) static inline std::string test_platform_executable_path() { return {}; } #elif defined(__QNXNTO__)