summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch')
-rw-r--r--dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch b/dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch
new file mode 100644
index 000000000000..6b3a46c1342e
--- /dev/null
+++ b/dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch
@@ -0,0 +1,46 @@
+Fix error: type ‘struct NameCompareFunctor’ violates the C++ One Definition Rule [-Werror=odr]
+
+Bug: https://bugs.gentoo.org/856097
+
+--- a/src/xalanc/PlatformSupport/AttributesImpl.cpp
++++ b/src/xalanc/PlatformSupport/AttributesImpl.cpp
+@@ -253,6 +253,9 @@
+
+
+
++namespace
++{
++
+ struct NameCompareFunctor
+ {
+ NameCompareFunctor(const XMLCh* theQName) :
+@@ -271,6 +274,8 @@
+ const XMLCh* const m_qname;
+ };
+
++} // --- namespace
++
+
+
+ struct URIAndLocalNameCompareFunctor
+--- a/src/xalanc/PlatformSupport/AttributeListImpl.cpp
++++ b/src/xalanc/PlatformSupport/AttributeListImpl.cpp
+@@ -242,6 +242,9 @@
+
+
+
++namespace
++{
++
+ struct NameCompareFunctor
+ {
+ NameCompareFunctor(const XMLCh* theName) :
+@@ -260,6 +263,8 @@
+ const XMLCh* const m_name;
+ };
+
++} // --- namespace
++
+
+
+ const XMLCh*