Browse Source

ifdef out Unix-only output redirect function on Windows

Adam Ierymenko 11 years ago
parent
commit
b3491f9de1
2 changed files with 3 additions and 1 deletions
  1. 2 0
      node/Utils.cpp
  2. 1 1
      node/Utils.hpp

+ 2 - 0
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' };
 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)
 bool Utils::redirectUnixOutputs(const char *stdoutPath,const char *stderrPath)
 	throw()
 	throw()
 {
 {
@@ -72,6 +73,7 @@ bool Utils::redirectUnixOutputs(const char *stdoutPath,const char *stderrPath)
 	}
 	}
 	return false;
 	return false;
 }
 }
+#endif // __UNIX_LIKE__
 
 
 std::map<std::string,bool> Utils::listDirectory(const char *path)
 std::map<std::string,bool> Utils::listDirectory(const char *path)
 {
 {

+ 1 - 1
node/Utils.hpp

@@ -71,7 +71,7 @@ public:
 	 */
 	 */
 	static bool redirectUnixOutputs(const char *stdoutPath,const char *stderrPath = (const char *)0)
 	static bool redirectUnixOutputs(const char *stdoutPath,const char *stderrPath = (const char *)0)
 		throw();
 		throw();
-#endif
+#endif // __UNIX_LIKE__
 
 
 	/**
 	/**
 	 * Perform a time-invariant binary comparison
 	 * Perform a time-invariant binary comparison