build: Runtime and compilation fixes for FreeBSD 10.0
Change-Id: Idf1dfad0125c8505e60301172e205243dcd840da
Refs: #1348
diff --git a/daemon/core/resolver.hpp b/daemon/core/resolver.hpp
index 508e26d..a02047e 100644
--- a/daemon/core/resolver.hpp
+++ b/daemon/core/resolver.hpp
@@ -99,8 +99,11 @@
{
Resolver resolver(SuccessCallback(), ErrorCallback(), addressSelector);
- typename resolver::query query(host, port,
- resolver::query::all_matching);
+ typename resolver::query query(host, port
+#if not defined(__FreeBSD__)
+ , resolver::query::all_matching
+#endif
+ );
typename resolver::iterator remoteEndpoint = resolver.m_resolver.resolve(query);
typename resolver::iterator end;
@@ -128,8 +131,11 @@
const time::seconds& timeout,
const shared_ptr<Resolver>& self)
{
- typename resolver::query query(host, port,
- resolver::query::all_matching);
+ typename resolver::query query(host, port
+#if not defined(__FreeBSD__)
+ , resolver::query::all_matching
+#endif
+ );
m_resolver.async_resolve(query,
bind(&Resolver::onResolveSuccess, this, _1, _2, self));