summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2018-02-08 14:15:32 -0800
committerJoseph Henry <josephjah@gmail.com>2018-02-08 14:15:32 -0800
commitdb952a050a727717a5cd836c79a50d7504a9b9ef (patch)
treeb1556b68bde5766bfe86a00472be3f697c062799
parentf049740ae567fd4f4c855766869beb905b226a9b (diff)
downloadinfinitytier-db952a050a727717a5cd836c79a50d7504a9b9ef.tar.gz
infinitytier-db952a050a727717a5cd836c79a50d7504a9b9ef.zip
Added platform checks for Windows in OneService
-rw-r--r--service/OneService.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index 27b71141..4854d68d 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -1593,7 +1593,7 @@ public:
if (syncRoutes) {
char tapdev[64];
-#ifdef __WINDOWS__
+#if defined(__WINDOWS__) && !defined(ZT_SDK)
OSUtils::ztsnprintf(tapdev,sizeof(tapdev),"%.16llx",(unsigned long long)n.tap->luid().Value);
#else
Utils::scopy(tapdev,sizeof(tapdev),n.tap->deviceName().c_str());
@@ -1998,7 +1998,7 @@ public:
case ZT_VIRTUAL_NETWORK_CONFIG_OPERATION_CONFIG_UPDATE:
ZT_FAST_MEMCPY(&(n.config),nwc,sizeof(ZT_VirtualNetworkConfig));
if (n.tap) { // sanity check
-#ifdef __WINDOWS__
+#if defined(__WINDOWS__) && !defined(ZT_SDK)
// wait for up to 5 seconds for the WindowsEthernetTap to actually be initialized
//
// without WindowsEthernetTap::isInitialized() returning true, the won't actually
@@ -2019,7 +2019,7 @@ public:
case ZT_VIRTUAL_NETWORK_CONFIG_OPERATION_DOWN:
case ZT_VIRTUAL_NETWORK_CONFIG_OPERATION_DESTROY:
if (n.tap) { // sanity check
-#ifdef __WINDOWS__
+#if defined(__WINDOWS__) && !defined(ZT_SDK)
std::string winInstanceId(n.tap->instanceId());
#endif
*nuptr = (void *)0;