diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-12 21:25:36 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-12 21:25:36 -0400 |
| commit | d6414c9ff74e3f8076a1e94d3c6074366119900e (patch) | |
| tree | b0620f1f1610b51b386964d6758b5787b6cb7d6f /node/Demarc.cpp | |
| parent | 5076c75b079fe02c843ca85dc20821e468b2d7b8 (diff) | |
| download | infinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.tar.gz infinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.zip | |
Windows compiles! (w/Visual Studio 2012) That's about all it does, but it's a start.
Diffstat (limited to 'node/Demarc.cpp')
| -rw-r--r-- | node/Demarc.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/node/Demarc.cpp b/node/Demarc.cpp index b935ce53..9c78fb65 100644 --- a/node/Demarc.cpp +++ b/node/Demarc.cpp @@ -26,6 +26,14 @@ */ #include <vector> + +#include "Constants.hpp" + +#ifdef __WINDOWS__ +#include <WinSock2.h> +#include <Windows.h> +#endif + #include "Demarc.hpp" #include "RuntimeEnvironment.hpp" #include "Logger.hpp" @@ -82,7 +90,7 @@ bool Demarc::has(Port p) const throw() { Mutex::Lock _l(_ports_m); - return (_ports.count(p)); + return (_ports.count(p) != 0); } bool Demarc::bindLocalUdp(unsigned int localPort) |
