Commit ab7f1679 authored by Gus Grubba's avatar Gus Grubba

Fixing non Mac OS builds.

parent d653c636
......@@ -292,5 +292,7 @@ contains (DEFINES, DISABLE_ZEROCONF) {
} else:MacBuild|iOSBuild {
message("Including support for Zeroconf (Bonjour)")
DEFINES += QGC_ZEROCONF_ENABLED
} else {
message("Skipping support for Zeroconf (unsupported platform)")
}
......@@ -77,7 +77,9 @@ static QString get_ip_address(const QString& address)
UDPLink::UDPLink(UDPConfiguration* config)
: _socket(NULL)
, _connectState(false)
#if defined(QGC_ZEROCONF_ENABLED)
, _dnssServiceRef(NULL)
#endif
{
Q_ASSERT(config != NULL);
_config = config;
......
......@@ -205,9 +205,10 @@ private:
bool _hardwareConnect();
void _restartConnection();
#if defined(QGC_ZEROCONF_ENABLED)
void _registerZeroconf(uint16_t port, const std::string& regType);
void _deregisterZeroconf();
#if defined(QGC_ZEROCONF_ENABLED)
DNSServiceRef _dnssServiceRef;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment