Fixed compilation problem on *NIX.

This commit is contained in:
Gunnar Beutner 2012-04-04 10:21:14 +02:00
parent 5360a39cc5
commit f20e71ace8
3 changed files with 5 additions and 5 deletions

View File

@ -10,13 +10,13 @@ shared_ptr<T> make_shared(void)
template <typename T, typename TArg1>
shared_ptr<T> make_shared(const TArg1& arg1)
{
return shared_ptr<T>(new T());
return shared_ptr<T>(new T(arg1));
}
template <typename T, typename TArg1, typename TArg2>
shared_ptr<T> make_shared(const TArg1& arg1, const TArg2& arg2)
{
return shared_ptr<T>(new T());
return shared_ptr<T>(new T(arg1, arg2));
}
#endif /* CXX11COMPAT_H */

View File

@ -12,5 +12,5 @@ icinga_SOURCES = \
icinga_CXXFLAGS = -I${top_srcdir}/base \
-I${top_srcdir}/jsonrpc -I${top_srcdir}
icinga_LDFLAGS = $(top_builddir)/base/libbase.la \
$(top_builddir)/jsonrpc/libjsonrpc.la
icinga_LDFLAGS = $(top_builddir)/jsonrpc/libjsonrpc.la \
$(top_builddir)/base/libbase.la

View File

@ -80,7 +80,7 @@ int IcingaApplication::NewComponentHandler(ConfigObjectEventArgs::Ptr ea)
#ifdef _WIN32
path = object->GetName() + ".dll";
#else /* _WIN32 */
path = "lib" + ea->Object->GetName() + ".la";
path = "lib" + object->GetName() + ".la";
#endif /* _WIN32 */
// TODO: try to figure out where the component is located */