From 5076c75b079fe02c843ca85dc20821e468b2d7b8 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 12 Aug 2013 16:57:34 -0400 Subject: More Windows port work. --- node/Node.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'node/Node.cpp') diff --git a/node/Node.cpp b/node/Node.cpp index 2cacab56..f01f4659 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -343,7 +343,11 @@ Node::ReasonForTermination Node::run() Utils::rm((_r->homePath + ZT_PATH_SEPARATOR_S + "thisdeviceismine")); // Make sure networks.d exists +#ifdef __WINDOWS__ + CreateDirectory((_r->homePath + ZT_PATH_SEPARATOR_S + "networks.d").c_str(),NULL); +#else mkdir((_r->homePath + ZT_PATH_SEPARATOR_S + "networks.d").c_str(),0700); +#endif // Load or generate config authentication secret std::string configAuthTokenPath(_r->homePath + ZT_PATH_SEPARATOR_S + "authtoken.secret"); -- cgit v1.2.3