summaryrefslogtreecommitdiff
path: root/osdep/MacEthernetTap.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-08-07 18:14:12 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-08-07 18:14:12 -0500
commitaca31c7055bb500cc3783a07ce7158d3ec4e07b7 (patch)
treebc129d80f8b7f12b38b14e0a90b89aa74c5aff63 /osdep/MacEthernetTap.cpp
parent6073e7972f61422b39901ba27bdb5d9fbad9c547 (diff)
downloadinfinitytier-aca31c7055bb500cc3783a07ce7158d3ec4e07b7.tar.gz
infinitytier-aca31c7055bb500cc3783a07ce7158d3ec4e07b7.zip
Put kext back in Mac distro and use on versions older than High Sierra (which lack the feth device)
Diffstat (limited to 'osdep/MacEthernetTap.cpp')
-rw-r--r--osdep/MacEthernetTap.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/osdep/MacEthernetTap.cpp b/osdep/MacEthernetTap.cpp
index a11a75e2..237df470 100644
--- a/osdep/MacEthernetTap.cpp
+++ b/osdep/MacEthernetTap.cpp
@@ -24,6 +24,17 @@
* of your own application.
*/
+#include "../node/Constants.hpp"
+
+#ifdef __APPLE__
+
+#include "../node/Utils.hpp"
+#include "../node/Mutex.hpp"
+#include "../node/Dictionary.hpp"
+#include "OSUtils.hpp"
+#include "MacEthernetTap.hpp"
+#include "MacEthernetTapAgent.h"
+
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -57,14 +68,6 @@
#include <set>
#include <algorithm>
-#include "../node/Constants.hpp"
-#include "../node/Utils.hpp"
-#include "../node/Mutex.hpp"
-#include "../node/Dictionary.hpp"
-#include "OSUtils.hpp"
-#include "MacEthernetTap.hpp"
-#include "MacEthernetTapAgent.h"
-
static const ZeroTier::MulticastGroup _blindWildcardMulticastGroup(ZeroTier::MAC(0xff),0);
namespace ZeroTier {
@@ -463,3 +466,5 @@ void MacEthernetTap::threadMain()
}
} // namespace ZeroTier
+
+#endif // __APPLE__