summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-07-24 11:01:50 +0100
committerPeter Powell <petpow@saberuk.com>2018-07-24 11:05:51 +0100
commit7a24867d97c6ffe75b155d96dedb11b30b904a33 (patch)
tree753604a4b12eb8c31c4c2279153365b3e66d9784 /src/modules/m_spanningtree
parentef48486b09587a73568a35a1dfe9e3cab7a44ebb (diff)
Fix building on Windows.
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 8bc3bfd9c..21251983c 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -203,12 +203,14 @@ void ModuleSpanningTree::ConnectServer(Link* x, Autoconnect* y)
return;
}
+#ifndef _WIN32
if (x->IPAddr.find('/') != std::string::npos)
{
struct stat sb;
if (stat(x->IPAddr.c_str(), &sb) == -1 || !S_ISSOCK(sb.st_mode))
ipvalid = false;
}
+#endif
if (x->IPAddr.find(':') != std::string::npos)
{
in6_addr n;