mirror of https://github.com/Icinga/icinga2.git
Fixed compilation on *NIX.
This commit is contained in:
parent
33d67401b9
commit
2ffaff19a8
|
@ -348,7 +348,10 @@ string Application::GetExeDirectory(void) const
|
||||||
PathEnv = getenv("PATH");
|
PathEnv = getenv("PATH");
|
||||||
|
|
||||||
if (PathEnv != NULL) {
|
if (PathEnv != NULL) {
|
||||||
PathEnv = Memory::StrDup(PathEnv);
|
PathEnv = strdup(PathEnv);
|
||||||
|
|
||||||
|
if (PathEnv == NULL)
|
||||||
|
throw bad_alloc();
|
||||||
|
|
||||||
FoundPath = false;
|
FoundPath = false;
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
#include <stdexcept>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
Loading…
Reference in New Issue