From 26aa5aa9be0fd8c1fb936e0658fc78eb581aca2c Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Mon, 6 Nov 2023 21:07:23 +0100 Subject: [PATCH] emulators/libretro-flycast: fix build on FreeBSD 12 Work around the macros major() and minor() being exposed by sys/types.h. Approved by: portmgr (build fix blanket) PR: 274647 --- ...-Headers_include_vulkan_vulkan__structs.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 emulators/libretro-flycast/files/patch-core_deps_Vulkan-Headers_include_vulkan_vulkan__structs.hpp diff --git a/emulators/libretro-flycast/files/patch-core_deps_Vulkan-Headers_include_vulkan_vulkan__structs.hpp b/emulators/libretro-flycast/files/patch-core_deps_Vulkan-Headers_include_vulkan_vulkan__structs.hpp new file mode 100644 index 000000000000..a5fcacb98294 --- /dev/null +++ b/emulators/libretro-flycast/files/patch-core_deps_Vulkan-Headers_include_vulkan_vulkan__structs.hpp @@ -0,0 +1,18 @@ +--- core/deps/Vulkan-Headers/include/vulkan/vulkan_structs.hpp.orig 2023-11-06 20:05:46 UTC ++++ core/deps/Vulkan-Headers/include/vulkan/vulkan_structs.hpp +@@ -10,6 +10,15 @@ + + #include // strcmp + ++/* avoid conflict with macros from sys/types.h */ ++#ifdef major ++# undef major ++#endif ++ ++#ifdef minor ++# undef minor ++#endif ++ + namespace VULKAN_HPP_NAMESPACE + { + //===============