diff --git a/node/Dictionary.cpp b/node/Dictionary.cpp
index e7a1a0e60..1862499ad 100644
--- a/node/Dictionary.cpp
+++ b/node/Dictionary.cpp
@@ -16,6 +16,8 @@
* along with this program. If not, see .
*/
+#ifdef ZT_SUPPORT_OLD_STYLE_NETCONF
+
#include "Dictionary.hpp"
#include "C25519.hpp"
#include "Identity.hpp"
@@ -238,3 +240,5 @@ void Dictionary::_appendEsc(const char *data,unsigned int len,std::string &to)
}
} // namespace ZeroTier
+
+#endif // ZT_SUPPORT_OLD_STYLE_NETCONF
diff --git a/node/Dictionary.hpp b/node/Dictionary.hpp
index 5db82600b..d4cdd2307 100644
--- a/node/Dictionary.hpp
+++ b/node/Dictionary.hpp
@@ -19,6 +19,10 @@
#ifndef ZT_DICTIONARY_HPP
#define ZT_DICTIONARY_HPP
+#include "Constants.hpp"
+
+#ifdef ZT_SUPPORT_OLD_STYLE_NETCONF
+
#include
#include
@@ -26,7 +30,6 @@
#include
#include
-#include "Constants.hpp"
#include "Utils.hpp"
// Three fields are added/updated by sign()
@@ -272,4 +275,6 @@ private:
} // namespace ZeroTier
+#endif // ZT_SUPPORT_OLD_STYLE_NETCONF
+
#endif
diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp
index 3d1aa13c0..c0ca02308 100644
--- a/node/NetworkConfig.hpp
+++ b/node/NetworkConfig.hpp
@@ -25,20 +25,23 @@
#include