aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2018-07-19 14:21:05 -0400
committerLawrence Nahum <[email protected]>2018-09-01 15:25:03 +0200
commit9256f7d13f5b68ebc2981e8f45777f4bdc43f1b3 (patch)
treee38a99ab0f436e22098f6890ba4624541af6fd96 /src/net.cpp
parentMerge #14122: Test rpc_help.py failed: Check whether ZMQ is enabled or not. (diff)
downloaddiscoin-9256f7d13f5b68ebc2981e8f45777f4bdc43f1b3.tar.xz
discoin-9256f7d13f5b68ebc2981e8f45777f4bdc43f1b3.zip
build: avoid getifaddrs when unavailable
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index ad9c5e1d8..b3a991b70 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2167,7 +2167,7 @@ void Discover()
}
}
}
-#else
+#elif (HAVE_DECL_GETIFADDRS && HAVE_DECL_FREEIFADDRS)
// Get local host ip
struct ifaddrs* myaddrs;
if (getifaddrs(&myaddrs) == 0)