1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

net-mgmt/sblim-wbemcli: add <unistd.h> and fix -fpermissive errors

Approved by:	portmgr (bapt, implicit)
This commit is contained in:
John Marino 2013-10-02 20:04:27 +00:00
parent 318f74e7cf
commit a77c4f2429
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329104
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- CimCurl.cpp.orig 2009-03-04 19:10:54.000000000 +0000
+++ CimCurl.cpp
@@ -27,6 +27,7 @@
#include <string.h>
#endif
+#include <unistd.h>
#include "CimCurl.h"
extern int useNl;

View File

@ -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<string
StringArray() : vector<string>() {}
StringArray(int n) : vector<string>(n) {}
StringArray(int n, const string& s) : vector<string>(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<size(); n++) {
sb = sb + (*this).at(n) + q;
@@ -129,10 +129,10 @@ template<class T> class ArrayXml : publi
public:
ArrayXml() {}
ArrayXml<T> * clone() const { return new ArrayXml<T>(*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="") {