summaryrefslogtreecommitdiff
path: root/net/openwbem/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2013-03-26 23:34:34 +0000
committerjoerg <joerg>2013-03-26 23:34:34 +0000
commitc7f54e91379fea504d50dc7b26124c9b166e04b7 (patch)
tree9522612c31402f49c36939dfde50e77972de2d28 /net/openwbem/patches
parent27158b3073bdbb0fe03675505f2d162e631ef436 (diff)
downloadpkgsrc-c7f54e91379fea504d50dc7b26124c9b166e04b7.tar.gz
Define functions used by templates before this use.
Add some missing includes. Prefer ext/hash_map over hash_map.
Diffstat (limited to 'net/openwbem/patches')
-rw-r--r--net/openwbem/patches/patch-src_cimom_server_OW__Platform.cpp12
-rw-r--r--net/openwbem/patches/patch-src_cimom_server_OW__PlatformSignal.cpp12
-rw-r--r--net/openwbem/patches/patch-src_common_OW__COWReference.hpp12
-rw-r--r--net/openwbem/patches/patch-src_common_OW__HashMap.hpp24
-rw-r--r--net/openwbem/patches/patch-src_common_OW__HashMultiMap.hpp24
-rw-r--r--net/openwbem/patches/patch-src_common_OW__List.hpp48
-rw-r--r--net/openwbem/patches/patch-src_common_OW__SharedLibraryReference.hpp13
-rw-r--r--net/openwbem/patches/patch-src_common_OW__Stack.hpp13
-rw-r--r--net/openwbem/patches/patch-src_mof_OW__MOFCompiler.cpp12
-rw-r--r--net/openwbem/patches/patch-src_mof_OW__MOFCompiler.hpp12
-rw-r--r--net/openwbem/patches/patch-src_providerifcs_cmpi_common_cmpiBrokerEnc.cpp12
-rw-r--r--net/openwbem/patches/patch-src_providerifcs_cmpi_common_cmpiInstance.cpp12
-rw-r--r--net/openwbem/patches/patch-src_providerifcs_npi_OW__FTABLERef.hpp13
-rw-r--r--net/openwbem/patches/patch-src_providerifcs_npi_common_NPIExternal.hpp12
-rw-r--r--net/openwbem/patches/patch-src_providerifcs_remote_OW__RemoteProviderInterface.cpp12
-rw-r--r--net/openwbem/patches/patch-src_repositories_hdb_OW__AssocDb.hpp13
16 files changed, 256 insertions, 0 deletions
diff --git a/net/openwbem/patches/patch-src_cimom_server_OW__Platform.cpp b/net/openwbem/patches/patch-src_cimom_server_OW__Platform.cpp
new file mode 100644
index 00000000000..260205367cb
--- /dev/null
+++ b/net/openwbem/patches/patch-src_cimom_server_OW__Platform.cpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_cimom_server_OW__Platform.cpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/cimom/server/OW_Platform.cpp.orig 2013-03-25 15:28:45.000000000 +0000
++++ src/cimom/server/OW_Platform.cpp
+@@ -34,6 +34,7 @@
+ * @author Bart Whiteley
+ */
+
++#include <cstdlib>
+ #include "OW_config.h"
+ #include "OW_Platform.hpp"
+ #include "OW_ConfigOpts.hpp"
diff --git a/net/openwbem/patches/patch-src_cimom_server_OW__PlatformSignal.cpp b/net/openwbem/patches/patch-src_cimom_server_OW__PlatformSignal.cpp
new file mode 100644
index 00000000000..c2be976751c
--- /dev/null
+++ b/net/openwbem/patches/patch-src_cimom_server_OW__PlatformSignal.cpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_cimom_server_OW__PlatformSignal.cpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/cimom/server/OW_PlatformSignal.cpp.orig 2013-03-25 15:29:11.000000000 +0000
++++ src/cimom/server/OW_PlatformSignal.cpp
+@@ -36,6 +36,7 @@
+ #include "OW_PlatformSignal.hpp"
+ #include "OW_UserUtils.hpp"
+ #include <ostream>
++#include <cstring>
+
+ namespace OW_NAMESPACE
+ {
diff --git a/net/openwbem/patches/patch-src_common_OW__COWReference.hpp b/net/openwbem/patches/patch-src_common_OW__COWReference.hpp
new file mode 100644
index 00000000000..c09fff31f22
--- /dev/null
+++ b/net/openwbem/patches/patch-src_common_OW__COWReference.hpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_common_OW__COWReference.hpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/common/OW_COWReference.hpp.orig 2013-03-25 15:04:13.000000000 +0000
++++ src/common/OW_COWReference.hpp
+@@ -35,6 +35,7 @@
+ #ifndef OW_COWREFERENCE_HPP_INCLUDE_GUARD_
+ #define OW_COWREFERENCE_HPP_INCLUDE_GUARD_
+ #include "OW_config.h"
++#include "OW_vector.hpp"
+ #include "OW_COWReferenceBase.hpp"
+
+ namespace OW_NAMESPACE
diff --git a/net/openwbem/patches/patch-src_common_OW__HashMap.hpp b/net/openwbem/patches/patch-src_common_OW__HashMap.hpp
new file mode 100644
index 00000000000..67a654cc7f5
--- /dev/null
+++ b/net/openwbem/patches/patch-src_common_OW__HashMap.hpp
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_common_OW__HashMap.hpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/common/OW_HashMap.hpp.orig 2013-03-25 15:16:33.000000000 +0000
++++ src/common/OW_HashMap.hpp
+@@ -35,14 +35,14 @@
+ #ifndef OW_HASH_MAP_HPP_INCLUDE_GUARD_
+ #define OW_HASH_MAP_HPP_INCLUDE_GUARD_
+ #include "OW_config.h"
+-#ifdef OW_HAVE_HASH_MAP
+- #include <hash_map> // hash_map is better for the cache than OW_SortedVectorMap
+- #define OW_HASH_MAP_NS std
+- #define HashMap std::hash_map
+-#elif OW_HAVE_EXT_HASH_MAP
++#if OW_HAVE_EXT_HASH_MAP
+ #include <ext/hash_map> // hash_map is better for the cache than OW_SortedVectorMap
+ #define OW_HASH_MAP_NS __gnu_cxx
+ #define HashMap __gnu_cxx::hash_map
++#elif OW_HAVE_HASH_MAP
++ #include <hash_map> // hash_map is better for the cache than OW_SortedVectorMap
++ #define OW_HASH_MAP_NS std
++ #define HashMap std::hash_map
+ #else
+ #include "OW_SortedVectorMap.hpp"
+ #define OW_HASH_MAP_NS OW_NAMESPACE
diff --git a/net/openwbem/patches/patch-src_common_OW__HashMultiMap.hpp b/net/openwbem/patches/patch-src_common_OW__HashMultiMap.hpp
new file mode 100644
index 00000000000..7bada9f2ec8
--- /dev/null
+++ b/net/openwbem/patches/patch-src_common_OW__HashMultiMap.hpp
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_common_OW__HashMultiMap.hpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/common/OW_HashMultiMap.hpp.orig 2013-03-25 15:16:16.000000000 +0000
++++ src/common/OW_HashMultiMap.hpp
+@@ -35,14 +35,14 @@
+ #ifndef OW_HASH_MULTI_MAP_HPP_INCLUDE_GUARD_
+ #define OW_HASH_MULTI_MAP_HPP_INCLUDE_GUARD_
+ #include "OW_config.h"
+-#ifdef OW_HAVE_HASH_MAP
+- #include <hash_map>
+- #define OW_HASH_MAP_NS std
+- #define HashMultiMap std::hash_multimap
+-#elif OW_HAVE_EXT_HASH_MAP
++#if OW_HAVE_EXT_HASH_MAP
+ #include <ext/hash_map>
+ #define OW_HASH_MAP_NS __gnu_cxx
+ #define HashMultiMap __gnu_cxx::hash_multimap
++#elif OW_HAVE_HASH_MAP
++ #include <hash_map>
++ #define OW_HASH_MAP_NS std
++ #define HashMultiMap std::hash_multimap
+ #else
+ // TODO: Write a real hash multi map
+ #include <map>
diff --git a/net/openwbem/patches/patch-src_common_OW__List.hpp b/net/openwbem/patches/patch-src_common_OW__List.hpp
new file mode 100644
index 00000000000..a2d755c2b85
--- /dev/null
+++ b/net/openwbem/patches/patch-src_common_OW__List.hpp
@@ -0,0 +1,48 @@
+$NetBSD: patch-src_common_OW__List.hpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/common/OW_List.hpp.orig 2013-03-25 15:33:34.000000000 +0000
++++ src/common/OW_List.hpp
+@@ -36,12 +36,10 @@
+ #ifndef OW_LIST_HPP_INCLUDE_GUARD_
+ #define OW_LIST_HPP_INCLUDE_GUARD_
+ #include "OW_config.h"
+-#include "OW_COWReference.hpp"
+ #include <list>
+
+ namespace OW_NAMESPACE
+ {
+-
+ // forward declarations are necessary for template friends.
+ template<class T> class List;
+
+@@ -51,7 +49,17 @@ inline bool operator==(const List<T>& x,
+ template <class T>
+ inline bool operator<(const List<T>& x, const List<T>& y);
+
+-
++template <class T>
++std::list<T>* COWReferenceClone(std::list<T>* obj)
++{
++ return new std::list<T>(*obj);
++}
++}
++
++#include "OW_COWReference.hpp"
++
++namespace OW_NAMESPACE
++{
+ /**
+ * This class is a wrapper around std::list<> and adds COW capabilities.
+ */
+@@ -289,11 +297,6 @@ inline void swap(List<T>& x, List<T>& y)
+ {
+ x.swap(y);
+ }
+-template <class T>
+-std::list<T>* COWReferenceClone(std::list<T>* obj)
+-{
+- return new std::list<T>(*obj);
+-}
+
+ } // end namespace OW_NAMESPACE
+
diff --git a/net/openwbem/patches/patch-src_common_OW__SharedLibraryReference.hpp b/net/openwbem/patches/patch-src_common_OW__SharedLibraryReference.hpp
new file mode 100644
index 00000000000..ee6ee9f9c1a
--- /dev/null
+++ b/net/openwbem/patches/patch-src_common_OW__SharedLibraryReference.hpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_common_OW__SharedLibraryReference.hpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/common/OW_SharedLibraryReference.hpp.orig 2013-03-25 15:05:11.000000000 +0000
++++ src/common/OW_SharedLibraryReference.hpp
+@@ -113,7 +113,7 @@ public:
+ {
+ SharedLibraryReference<U> rval;
+ rval.m_sharedLib = m_sharedLib;
+- rval.m_obj = m_obj.cast_to<U>();
++ rval.m_obj = m_obj.template cast_to<U>();
+ return rval;
+ }
+
diff --git a/net/openwbem/patches/patch-src_common_OW__Stack.hpp b/net/openwbem/patches/patch-src_common_OW__Stack.hpp
new file mode 100644
index 00000000000..1fef8dbd0e2
--- /dev/null
+++ b/net/openwbem/patches/patch-src_common_OW__Stack.hpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_common_OW__Stack.hpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/common/OW_Stack.hpp.orig 2013-03-25 15:18:00.000000000 +0000
++++ src/common/OW_Stack.hpp
+@@ -54,7 +54,7 @@ public:
+ reference top() { return this->back(); }
+ const_reference top() const { return this->back(); }
+ void pop() { this->pop_back(); }
+- void push(const T& x) { push_back(x); }
++ void push(const T& x) { this->push_back(x); }
+ int search(const T& x) const
+ {
+ int i = find(x);
diff --git a/net/openwbem/patches/patch-src_mof_OW__MOFCompiler.cpp b/net/openwbem/patches/patch-src_mof_OW__MOFCompiler.cpp
new file mode 100644
index 00000000000..5fb9feb1edc
--- /dev/null
+++ b/net/openwbem/patches/patch-src_mof_OW__MOFCompiler.cpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_mof_OW__MOFCompiler.cpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/mof/OW_MOFCompiler.cpp.orig 2013-03-25 15:38:25.000000000 +0000
++++ src/mof/OW_MOFCompiler.cpp
+@@ -51,6 +51,7 @@
+
+ #include <assert.h>
+ #include <cctype>
++#include <climits>
+
+ // forward declarations of some lex/yacc functions we need to call.
+ void owmof_delete_buffer(YY_BUFFER_STATE b);
diff --git a/net/openwbem/patches/patch-src_mof_OW__MOFCompiler.hpp b/net/openwbem/patches/patch-src_mof_OW__MOFCompiler.hpp
new file mode 100644
index 00000000000..aeb5a64d3a4
--- /dev/null
+++ b/net/openwbem/patches/patch-src_mof_OW__MOFCompiler.hpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_mof_OW__MOFCompiler.hpp,v 1.1 2013/03/26 23:34:34 joerg Exp $
+
+--- src/mof/OW_MOFCompiler.hpp.orig 2013-03-25 15:37:55.000000000 +0000
++++ src/mof/OW_MOFCompiler.hpp
+@@ -35,6 +35,7 @@
+ #ifndef OW_MOF_COMPILER_HPP_INCLUDE_GUARD_
+ #define OW_MOF_COMPILER_HPP_INCLUDE_GUARD_
+ #include "OW_config.h"
++#include "OW_List.hpp"
+ #include "OW_CIMOMHandleIFC.hpp"
+ #include "OW_String.hpp"
+ #include "OW_MOFParserErrorHandlerIFC.hpp"
diff --git a/net/openwbem/patches/patch-src_providerifcs_cmpi_common_cmpiBrokerEnc.cpp b/net/openwbem/patches/patch-src_providerifcs_cmpi_common_cmpiBrokerEnc.cpp
new file mode 100644
index 00000000000..dcd164ef4cb
--- /dev/null
+++ b/net/openwbem/patches/patch-src_providerifcs_cmpi_common_cmpiBrokerEnc.cpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_providerifcs_cmpi_common_cmpiBrokerEnc.cpp,v 1.1 2013/03/26 23:34:35 joerg Exp $
+
+--- src/providerifcs/cmpi/common/cmpiBrokerEnc.cpp.orig 2013-03-25 15:27:10.000000000 +0000
++++ src/providerifcs/cmpi/common/cmpiBrokerEnc.cpp
+@@ -19,6 +19,7 @@
+ *
+ */
+
++#include <cstring>
+ #include "cmpisrv.h"
+ #include "OW_CIMException.hpp"
+ #include "OW_CIMProperty.hpp"
diff --git a/net/openwbem/patches/patch-src_providerifcs_cmpi_common_cmpiInstance.cpp b/net/openwbem/patches/patch-src_providerifcs_cmpi_common_cmpiInstance.cpp
new file mode 100644
index 00000000000..012018bf30b
--- /dev/null
+++ b/net/openwbem/patches/patch-src_providerifcs_cmpi_common_cmpiInstance.cpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_providerifcs_cmpi_common_cmpiInstance.cpp,v 1.1 2013/03/26 23:34:35 joerg Exp $
+
+--- src/providerifcs/cmpi/common/cmpiInstance.cpp.orig 2013-03-25 15:27:54.000000000 +0000
++++ src/providerifcs/cmpi/common/cmpiInstance.cpp
+@@ -19,6 +19,7 @@
+ *
+ */
+
++#include <cstring>
+ #include "cmpisrv.h"
+ #include "OW_CIMInstance.hpp"
+
diff --git a/net/openwbem/patches/patch-src_providerifcs_npi_OW__FTABLERef.hpp b/net/openwbem/patches/patch-src_providerifcs_npi_OW__FTABLERef.hpp
new file mode 100644
index 00000000000..059240fdd58
--- /dev/null
+++ b/net/openwbem/patches/patch-src_providerifcs_npi_OW__FTABLERef.hpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_providerifcs_npi_OW__FTABLERef.hpp,v 1.1 2013/03/26 23:34:35 joerg Exp $
+
+--- src/providerifcs/npi/OW_FTABLERef.hpp.orig 2013-03-25 15:26:20.000000000 +0000
++++ src/providerifcs/npi/OW_FTABLERef.hpp
+@@ -29,7 +29,7 @@
+ *******************************************************************************/
+ #ifndef OW_FTABLE_REF_HPP_
+ #define OW_FTABLE_REF_HPP_
+-//#include <string.h>
++#include <cstring>
+ #include "OW_config.h"
+ #include "OW_CIMOMHandleIFC.hpp"
+ #include "OW_CIMDataType.hpp"
diff --git a/net/openwbem/patches/patch-src_providerifcs_npi_common_NPIExternal.hpp b/net/openwbem/patches/patch-src_providerifcs_npi_common_NPIExternal.hpp
new file mode 100644
index 00000000000..27e6f900c88
--- /dev/null
+++ b/net/openwbem/patches/patch-src_providerifcs_npi_common_NPIExternal.hpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_providerifcs_npi_common_NPIExternal.hpp,v 1.1 2013/03/26 23:34:35 joerg Exp $
+
+--- src/providerifcs/npi/common/NPIExternal.hpp.orig 2013-03-25 15:25:53.000000000 +0000
++++ src/providerifcs/npi/common/NPIExternal.hpp
+@@ -17,6 +17,7 @@
+ #ifndef NPIExternal_h
+ #define NPIExternal_h
+ #include "OW_FTABLERef.hpp"
++#include <cstdlib>
+
+ namespace OW_NAMESPACE
+ {
diff --git a/net/openwbem/patches/patch-src_providerifcs_remote_OW__RemoteProviderInterface.cpp b/net/openwbem/patches/patch-src_providerifcs_remote_OW__RemoteProviderInterface.cpp
new file mode 100644
index 00000000000..1c777b85f70
--- /dev/null
+++ b/net/openwbem/patches/patch-src_providerifcs_remote_OW__RemoteProviderInterface.cpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_providerifcs_remote_OW__RemoteProviderInterface.cpp,v 1.1 2013/03/26 23:34:35 joerg Exp $
+
+--- src/providerifcs/remote/OW_RemoteProviderInterface.cpp.orig 2013-03-25 15:24:54.000000000 +0000
++++ src/providerifcs/remote/OW_RemoteProviderInterface.cpp
+@@ -33,6 +33,7 @@
+ */
+
+ #include "OW_config.h"
++#include "OW_ClientCIMOMHandle.hpp"
+ #include "OW_RemoteProviderInterface.hpp"
+ #include "OW_RemoteInstanceProvider.hpp"
+ #include "OW_RemoteSecondaryInstanceProvider.hpp"
diff --git a/net/openwbem/patches/patch-src_repositories_hdb_OW__AssocDb.hpp b/net/openwbem/patches/patch-src_repositories_hdb_OW__AssocDb.hpp
new file mode 100644
index 00000000000..19c6572b7bb
--- /dev/null
+++ b/net/openwbem/patches/patch-src_repositories_hdb_OW__AssocDb.hpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_repositories_hdb_OW__AssocDb.hpp,v 1.1 2013/03/26 23:34:35 joerg Exp $
+
+--- src/repositories/hdb/OW_AssocDb.hpp.orig 2013-03-25 15:20:50.000000000 +0000
++++ src/repositories/hdb/OW_AssocDb.hpp
+@@ -50,6 +50,8 @@
+ #include "OW_IntrusiveReference.hpp"
+ #include "OW_IntrusiveCountableBase.hpp"
+
++#include <cstring>
++
+ namespace OW_NAMESPACE
+ {
+