diff --git a/lib/base/process.cpp b/lib/base/process.cpp index e64413cfa..0b286c4fc 100644 --- a/lib/base/process.cpp +++ b/lib/base/process.cpp @@ -233,16 +233,16 @@ void Process::IOThreadProc(int tid) #endif /* _WIN32 */ for (int i = 1; i < count; i++) { + std::map::iterator it; +#ifdef _WIN32 + it = l_Processes[tid].find(handles[i]); +#else /* _WIN32 */ std::map::iterator it2; it2 = l_FDs[tid].find(pfds[i].fd); if (it2 == l_FDs[tid].end()) continue; /* This should never happen. */ - std::map::iterator it; -#ifdef _WIN32 - it = l_Processes[tid].find(handles[i]); -#else /* _WIN32 */ it = l_Processes[tid].find(it2->second); #endif /* _WIN32 */ diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index c11a43e09..be1a91ca7 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -477,8 +477,8 @@ bool Utility::Glob(const String& pathSpec, const boost::function +class I2_ICINGA_API CustomVarObject : public ObjectImpl { public: DECLARE_PTR_TYPEDEFS(CustomVarObject);