util: no-op NetworkMonitor on unsupported platforms
NetworkMonitor::getCapabilities() function reports what functions
and signals are supported on current platform.
refs #4025
Change-Id: I2c2825e0f9919a734fb78b4699a483c837ee09af
diff --git a/src/util/detail/network-monitor-impl-osx.hpp b/src/util/detail/network-monitor-impl-osx.hpp
index c36866a..747aefd 100644
--- a/src/util/detail/network-monitor-impl-osx.hpp
+++ b/src/util/detail/network-monitor-impl-osx.hpp
@@ -45,6 +45,13 @@
~Impl();
+ uint32_t
+ getCapabilities() const
+ {
+ return NetworkMonitor::CAP_NONE;
+ /// \todo #3817 change to CAP_ENUM | CAP_IF_ADD_REMOVE | CAP_STATE_CHANGE | CAP_ADDR_ADD_REMOVE
+ }
+
shared_ptr<NetworkInterface>
getNetworkInterface(const std::string& ifname) const;