diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-07 06:36:46 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-07 06:36:46 -0700 |
commit | b3491f9de18a4d3c029f4f9400b92337091d2274 (patch) | |
tree | 64773aa4e1a2bb402ac25bb716e051bca1c7041b /node | |
parent | 80fc5849233c63b60c91e3fc1bf106b810e45c36 (diff) | |
download | infinitytier-b3491f9de18a4d3c029f4f9400b92337091d2274.tar.gz infinitytier-b3491f9de18a4d3c029f4f9400b92337091d2274.zip |
ifdef out Unix-only output redirect function on Windows
Diffstat (limited to 'node')
-rw-r--r-- | node/Utils.cpp | 2 | ||||
-rw-r--r-- | node/Utils.hpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp index e1dbedaa..8a27fc9f 100644 --- a/node/Utils.cpp +++ b/node/Utils.cpp @@ -51,6 +51,7 @@ namespace ZeroTier { const char Utils::HEXCHARS[16] = { '0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f' }; +#ifdef __UNIX_LIKE__ bool Utils::redirectUnixOutputs(const char *stdoutPath,const char *stderrPath) throw() { @@ -72,6 +73,7 @@ bool Utils::redirectUnixOutputs(const char *stdoutPath,const char *stderrPath) } return false; } +#endif // __UNIX_LIKE__ std::map<std::string,bool> Utils::listDirectory(const char *path) { diff --git a/node/Utils.hpp b/node/Utils.hpp index 91620d78..0b892cd9 100644 --- a/node/Utils.hpp +++ b/node/Utils.hpp @@ -71,7 +71,7 @@ public: */ static bool redirectUnixOutputs(const char *stdoutPath,const char *stderrPath = (const char *)0) throw(); -#endif +#endif // __UNIX_LIKE__ /** * Perform a time-invariant binary comparison |