From: Gunnar Beutner Date: Mon, 13 Aug 2012 10:39:37 +0000 (+0200) Subject: Build fix for FreeBSD. X-Git-Tag: v0.0.1~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e0bb5d51c2e96b41a4e2ef7216808cf4e6b457d;p=icinga2 Build fix for FreeBSD. --- diff --git a/base/dynamicobject.h b/base/dynamicobject.h index d0a459ca9..025959b2f 100644 --- a/base/dynamicobject.h +++ b/base/dynamicobject.h @@ -155,8 +155,14 @@ public: } }; +template +shared_ptr DynamicObjectFactory(const Dictionary::Ptr& serializedUpdate) +{ + return boost::make_shared(serializedUpdate); +} + #define REGISTER_CLASS(klass) \ - static RegisterClassHelper g_Register ## klass(#klass, boost::make_shared) + static RegisterClassHelper g_Register ## klass(#klass, DynamicObjectFactory) } diff --git a/base/scriptfunction.h b/base/scriptfunction.h index da348c386..94bbc7138 100644 --- a/base/scriptfunction.h +++ b/base/scriptfunction.h @@ -49,4 +49,5 @@ private: } -#endif /* SCRIPTFUNCTION_H */ \ No newline at end of file +#endif /* SCRIPTFUNCTION_H */ + diff --git a/base/unix.h b/base/unix.h index 0e790f2b2..31e5ae9c0 100644 --- a/base/unix.h +++ b/base/unix.h @@ -35,6 +35,7 @@ #include #include #include +#include void Sleep(unsigned long milliseconds);