git: 4fda63ef69a8 - main - graphics/opencollada: Fix build with Clang 13+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 13:49:27 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4fda63ef69a8fc2c1f67922fa47bb31533383ccf
commit 4fda63ef69a8fc2c1f67922fa47bb31533383ccf
Author: Tatsuki Makino <tatsuki_makino@hotmail.com>
AuthorDate: 2022-03-25 13:12:28 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:38:02 +0000
graphics/opencollada: Fix build with Clang 13+
PR: 260808
Reported by: Robert Cina <transitive@gmail.com>
---
graphics/opencollada/files/patch-clang13 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/graphics/opencollada/files/patch-clang13 b/graphics/opencollada/files/patch-clang13
new file mode 100644
index 000000000000..80ec2e2da928
--- /dev/null
+++ b/graphics/opencollada/files/patch-clang13
@@ -0,0 +1,11 @@
+--- common/libBuffer/include/CommonFWriteBufferFlusher.h.orig 2018-11-26 22:43:10 UTC
++++ common/libBuffer/include/CommonFWriteBufferFlusher.h
+@@ -19,6 +19,8 @@
+ #else
+ # include <unordered_map>
+ #endif
++#elif defined(__clang_major__) && __clang_major__ >= 13
++# include <unordered_map>
+ #else
+ # include <tr1/unordered_map>
+ #endif