Mercurial > hg > orthanc
diff Core/Toolbox.cpp @ 892:517e28b420af plugins
integration mainline -> plugins
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 16 Jun 2014 15:41:13 +0200 |
parents | 0570a8c859cb 816dccaeb7cf |
children | 3fb427ac3f53 |
line wrap: on
line diff
--- a/Core/Toolbox.cpp Mon Jun 16 15:40:58 2014 +0200 +++ b/Core/Toolbox.cpp Mon Jun 16 15:41:13 2014 +0200 @@ -54,7 +54,7 @@ #include <limits.h> /* PATH_MAX */ #endif -#if defined(__linux) +#if defined(__linux) || defined(__FreeBSD_kernel__) #include <limits.h> /* PATH_MAX */ #include <signal.h> #include <unistd.h> @@ -162,7 +162,7 @@ { #if defined(_WIN32) ::Sleep(static_cast<DWORD>(microSeconds / static_cast<uint64_t>(1000))); -#elif defined(__linux) +#elif defined(__linux) || defined(__FreeBSD_kernel__) usleep(microSeconds); #else #error Support your platform here @@ -515,7 +515,7 @@ return std::string(&buffer[0]); } -#elif defined(__linux) +#elif defined(__linux) || defined(__FreeBSD_kernel__) std::string Toolbox::GetPathToExecutable() { std::vector<char> buffer(PATH_MAX + 1);