summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index f01f4659..dd6b50a2 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -29,6 +29,8 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#include <sys/stat.h>
+
#include <map>
#include <set>
#include <utility>
@@ -37,6 +39,13 @@
#include <vector>
#include <string>
+#include "Constants.hpp"
+
+#ifdef __WINDOWS__
+#include <WinSock2.h>
+#include <Windows.h>
+#endif
+
#include "Condition.hpp"
#include "Node.hpp"
#include "Topology.hpp"
@@ -46,7 +55,6 @@
#include "Utils.hpp"
#include "EthernetTap.hpp"
#include "Logger.hpp"
-#include "Constants.hpp"
#include "InetAddress.hpp"
#include "Salsa20.hpp"
#include "HMAC.hpp"
@@ -68,7 +76,6 @@
#include <unistd.h>
#include <signal.h>
#include <sys/file.h>
-#include <sys/stat.h>
#endif
#include "../version.h"