Adam Ierymenko 6 years ago
parent
commit
c83a4aef55
1 changed files with 10 additions and 4 deletions
  1. 10 4
      osdep/EthernetTap.cpp

+ 10 - 4
osdep/EthernetTap.cpp

@@ -30,6 +30,14 @@
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
 
 
+#ifdef ZT_SDK
+
+#include "../controller/EmbeddedNetworkController.hpp"
+#include "../node/Node.hpp"
+#include "../include/VirtualTap.hpp"
+
+#else
+
 #ifdef __APPLE__
 #ifdef __APPLE__
 #include <sys/sysctl.h>
 #include <sys/sysctl.h>
 #include "MacEthernetTap.hpp"
 #include "MacEthernetTap.hpp"
@@ -56,10 +64,6 @@
 #include "BSDEthernetTap.hpp"
 #include "BSDEthernetTap.hpp"
 #endif // __OpenBSD__
 #endif // __OpenBSD__
 
 
-#ifdef ZT_SDK
-#include "../controller/EmbeddedNetworkController.hpp"
-#include "../node/Node.hpp"
-#include "../include/VirtualTap.hpp"
 #endif
 #endif
 
 
 namespace ZeroTier {
 namespace ZeroTier {
@@ -77,7 +81,9 @@ std::shared_ptr<EthernetTap> EthernetTap::newInstance(
 {
 {
 
 
 #ifdef ZT_SDK
 #ifdef ZT_SDK
+
 	return std::shared_ptr<EthernetTap>(new VirtualTap(homePath,mac,mtu,metric,nwid,friendlyName,handler,arg));
 	return std::shared_ptr<EthernetTap>(new VirtualTap(homePath,mac,mtu,metric,nwid,friendlyName,handler,arg));
+
 #else // not ZT_SDK
 #else // not ZT_SDK
 
 
 #ifdef __APPLE__
 #ifdef __APPLE__