mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 13:14:32 +02:00
Build fix for FreeBSD.
This commit is contained in:
parent
0e8a5587a9
commit
1e0bb5d51c
@ -155,8 +155,14 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
shared_ptr<T> DynamicObjectFactory(const Dictionary::Ptr& serializedUpdate)
|
||||
{
|
||||
return boost::make_shared<T>(serializedUpdate);
|
||||
}
|
||||
|
||||
#define REGISTER_CLASS(klass) \
|
||||
static RegisterClassHelper g_Register ## klass(#klass, boost::make_shared<klass, const Dictionary::Ptr&>)
|
||||
static RegisterClassHelper g_Register ## klass(#klass, DynamicObjectFactory<klass>)
|
||||
|
||||
}
|
||||
|
||||
|
@ -50,3 +50,4 @@ private:
|
||||
}
|
||||
|
||||
#endif /* SCRIPTFUNCTION_H */
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include <libgen.h>
|
||||
#include <syslog.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
void Sleep(unsigned long milliseconds);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user