From a77c4f2429721987a25ad3383b6bebb3fe5bfe75 Mon Sep 17 00:00:00 2001 From: John Marino Date: Wed, 2 Oct 2013 20:04:27 +0000 Subject: net-mgmt/sblim-wbemcli: add and fix -fpermissive errors Approved by: portmgr (bapt, implicit) --- net-mgmt/sblim-wbemcli/files/patch-CimCurl.cpp | 10 ++++++++++ net-mgmt/sblim-wbemcli/files/patch-CimXml.h | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 net-mgmt/sblim-wbemcli/files/patch-CimCurl.cpp create mode 100644 net-mgmt/sblim-wbemcli/files/patch-CimXml.h (limited to 'net-mgmt/sblim-wbemcli') diff --git a/net-mgmt/sblim-wbemcli/files/patch-CimCurl.cpp b/net-mgmt/sblim-wbemcli/files/patch-CimCurl.cpp new file mode 100644 index 000000000000..82a8b0f3a154 --- /dev/null +++ b/net-mgmt/sblim-wbemcli/files/patch-CimCurl.cpp @@ -0,0 +1,10 @@ +--- CimCurl.cpp.orig 2009-03-04 19:10:54.000000000 +0000 ++++ CimCurl.cpp +@@ -27,6 +27,7 @@ + #include + #endif + ++#include + #include "CimCurl.h" + + extern int useNl; diff --git a/net-mgmt/sblim-wbemcli/files/patch-CimXml.h b/net-mgmt/sblim-wbemcli/files/patch-CimXml.h new file mode 100644 index 000000000000..1d312c7488b8 --- /dev/null +++ b/net-mgmt/sblim-wbemcli/files/patch-CimXml.h @@ -0,0 +1,25 @@ +--- CimXml.h.orig 2009-06-24 17:44:48.000000000 +0000 ++++ CimXml.h +@@ -54,7 +54,7 @@ class StringArray : public vector() {} + StringArray(int n) : vector(n) {} + StringArray(int n, const string& s) : vector(n,s) {} +- void add(const string& t) { push_back(t); } ++ void add(const string& t) { this->push_back(t); } + void toStringBuffer(string &sb, const char *sep=" ",const char *q="") { + for (size_type n=0; n class ArrayXml : publi + public: + ArrayXml() {} + ArrayXml * clone() const { return new ArrayXml(*this);} +- void add(const T& t) { push_back(t); } ++ void add(const T& t) { this->push_back(t); } + #if !defined(GCC_VERSION) || GCC_VERSION >= 3000 +- T& operator[] (size_type n) {return at(n);} +- const T& operator[] (size_type n) const {return at(n);} ++ T& operator[] (size_type n) {return this->at(n);} ++ const T& operator[] (size_type n) const {return this->at(n);} + #endif + T *get(int n) { return &(*this)[n]; } + void toStringBuffer(string &sb, const char *sep=" ",const char *q="") { -- cgit v1.2.3