mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-13 22:12:56 +00:00
ifdef out Unix-only output redirect function on Windows
This commit is contained in:
parent
80fc584923
commit
b3491f9de1
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user