File sblim-wbemcli-gcc47.patch of Package sblim-wbemcli
Index: sblim-wbemcli-1.6.2/CimXml.h
===================================================================
--- sblim-wbemcli-1.6.2.orig/CimXml.h
+++ sblim-wbemcli-1.6.2/CimXml.h
@@ -129,9 +129,9 @@ 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);}
+ T& operator[] (size_type n) {return this->at(n);}
const T& operator[] (size_type n) const {return at(n);}
#endif
T *get(int n) { return &(*this)[n]; }
Index: sblim-wbemcli-1.6.2/CimCurl.cpp
===================================================================
--- sblim-wbemcli-1.6.2.orig/CimCurl.cpp
+++ sblim-wbemcli-1.6.2/CimCurl.cpp
@@ -28,6 +28,7 @@
#endif
#include "CimCurl.h"
+#include <unistd.h> // gor getpass()
extern int useNl;
extern int dumpXml;