mirror of https://github.com/Icinga/icinga2.git
Build fix for Windows
This commit is contained in:
parent
5799d86ed7
commit
39248dad42
|
@ -40,7 +40,7 @@ static void OpenSSLLockingCallback(int mode, int type, const char *, int)
|
|||
static unsigned long OpenSSLIDCallback(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return reinterpret_cast<unsigned long>(GetCurrentThreadId());
|
||||
return (unsigned long)GetCurrentThreadId();
|
||||
#else /* _WIN32 */
|
||||
return (unsigned long)pthread_self();
|
||||
#endif /* _WIN32 */
|
||||
|
|
|
@ -793,7 +793,6 @@ String Utility::FormatErrorNumber(int code) {
|
|||
}
|
||||
|
||||
msgbuf << code << ", \"" << result << "\"";
|
||||
return tmp.str();
|
||||
#else
|
||||
msgbuf << strerror(code);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue