Skip to content

Commit

Permalink
Fixing non Mac OS builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmaphobic committed Jun 1, 2015
1 parent d653c63 commit ab7f167
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions QGCExternalLibs.pri
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
}

2 changes: 2 additions & 0 deletions src/comm/UDPLink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/comm/UDPLink.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,10 @@ public slots:
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

Expand Down

0 comments on commit ab7f167

Please sign in to comment.