aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2011-07-27 17:19:06 +0000
committerRenato Botelho <garga@FreeBSD.org>2011-07-27 17:19:06 +0000
commitef05d6b1ff47dcfb39e6e362e2f94c618add3bf1 (patch)
tree235e9324f9960c2723992131c9144222ea2d29bb /net
parent390fe1afe520b7c9ef8ab53752d9569e34d9bf16 (diff)
downloadports-ef05d6b1ff47dcfb39e6e362e2f94c618add3bf1.tar.gz
ports-ef05d6b1ff47dcfb39e6e362e2f94c618add3bf1.zip
Fix build with clang
Notes
Notes: svn path=/head/; revision=278420
Diffstat (limited to 'net')
-rw-r--r--net/xmlrpc-c-devel/files/patch-include__xmlrpc-c__base.hpp76
1 files changed, 76 insertions, 0 deletions
diff --git a/net/xmlrpc-c-devel/files/patch-include__xmlrpc-c__base.hpp b/net/xmlrpc-c-devel/files/patch-include__xmlrpc-c__base.hpp
new file mode 100644
index 000000000000..3744db6d0290
--- /dev/null
+++ b/net/xmlrpc-c-devel/files/patch-include__xmlrpc-c__base.hpp
@@ -0,0 +1,76 @@
+--- include/xmlrpc-c/base.hpp.orig 2011-07-26 14:56:50.000000000 -0300
++++ include/xmlrpc-c/base.hpp 2011-07-27 09:46:38.000000000 -0300
+@@ -226,28 +226,6 @@
+
+
+
+-template<class InputIterator> xmlrpc_c::value_array
+-arrayValueSlice(InputIterator begin,
+- InputIterator end) {
+-/*----------------------------------------------------------------------------
+- convert C++ iterator pair to XML-RPC array
+------------------------------------------------------------------------------*/
+- carray ret;
+- for (InputIterator p = begin; p != end; ++p) {
+- ret.push_back(toValue(*p));
+- }
+- return xmlrpc_c::value_array(ret);
+-}
+-
+-template<class MemberClass> inline xmlrpc_c::value_array
+-arrayValueArray(const MemberClass * const in,
+- size_t const size) {
+-/*----------------------------------------------------------------------------
+- convert C++ array to XML-RPC array
+------------------------------------------------------------------------------*/
+- return arrayValueSlice(in, in + size);
+-}
+-
+ class XMLRPC_DLLEXPORT value_nil : public value {
+ public:
+ value_nil();
+@@ -296,7 +274,7 @@
+ }
+
+ inline xmlrpc_c::value_bytestring
+- toValue(cbytestring const& x) {
++toValue(cbytestring const& x) {
+ return xmlrpc_c::value_bytestring(x);
+ }
+
+@@ -324,6 +302,19 @@
+ return xmlrpc_c::value_struct(ret);
+ }
+
++template<class InputIterator> xmlrpc_c::value_array
++arrayValueSlice(InputIterator begin,
++ InputIterator end) {
++/*----------------------------------------------------------------------------
++ convert C++ iterator pair to XML-RPC array
++-----------------------------------------------------------------------------*/
++ carray ret;
++ for (InputIterator p = begin; p != end; ++p) {
++ ret.push_back(toValue(*p));
++ }
++ return xmlrpc_c::value_array(ret);
++}
++
+ template<class T> inline xmlrpc_c::value_array
+ toValue(std::vector<T> const& in) {
+ /*----------------------------------------------------------------------------
+@@ -398,6 +389,15 @@
+ }
+ }
+
++template<class MemberClass> inline xmlrpc_c::value_array
++arrayValueArray(const MemberClass * const in,
++ size_t const size) {
++/*----------------------------------------------------------------------------
++ convert C++ array to XML-RPC array
++-----------------------------------------------------------------------------*/
++ return arrayValueSlice(in, in + size);
++}
++
+ class XMLRPC_DLLEXPORT fault {
+ /*----------------------------------------------------------------------------
+ This is an XML-RPC fault.