aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2023-11-06 20:07:23 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2023-11-07 00:17:29 +0000
commit26aa5aa9be0fd8c1fb936e0658fc78eb581aca2c (patch)
treee7a441c9a52c02048ce6cc92c1447fdd17b38668
parent30a12533e7c488b57fa176d3b0bd53903db28520 (diff)
downloadports-26aa5aa9be0fd8c1fb936e0658fc78eb581aca2c.tar.gz
ports-26aa5aa9be0fd8c1fb936e0658fc78eb581aca2c.zip
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
-rw-r--r--emulators/libretro-flycast/files/patch-core_deps_Vulkan-Headers_include_vulkan_vulkan__structs.hpp18
1 files changed, 18 insertions, 0 deletions
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 <cstring> // strcmp
+
++/* avoid conflict with macros from sys/types.h */
++#ifdef major
++# undef major
++#endif
++
++#ifdef minor
++# undef minor
++#endif
++
+ namespace VULKAN_HPP_NAMESPACE
+ {
+ //===============