diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-22 00:43:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-22 00:43:26 +0000 |
commit | 856eea7169f7a4605aed28392857e6c5c80c644c (patch) | |
tree | ef60da2c0582e3d606699d8bb9f98317531362a3 /dnssd/query.cpp | |
parent | 847c48556bc8f7c17bd201ced9381e2fbb2d5d09 (diff) | |
download | tdelibs-856eea7169f7a4605aed28392857e6c5c80c644c.tar.gz tdelibs-856eea7169f7a4605aed28392857e6c5c80c644c.zip |
Remaining Avahi fixes
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1152787 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dnssd/query.cpp')
-rw-r--r-- | dnssd/query.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dnssd/query.cpp b/dnssd/query.cpp index cab14b6ad..163891c71 100644 --- a/dnssd/query.cpp +++ b/dnssd/query.cpp @@ -26,10 +26,12 @@ #include <qapplication.h> #include <qtimer.h> +#ifdef HAVE_DNSSD #include <avahi-client/client.h> #ifdef AVAHI_API_0_6 #include <avahi-client/lookup.h> #endif +#endif #define TIMEOUT_LAN 200 @@ -78,12 +80,14 @@ Query::Query(const QString& type, const QString& domain) Query::~Query() { +#ifdef HAVE_DNSSD if (d->m_browser) { switch (d->m_browserType) { case Services: avahi_service_browser_free((AvahiServiceBrowser*)d->m_browser); break; case Types: avahi_service_type_browser_free((AvahiServiceTypeBrowser*)d->m_browser); break; } } +#endif delete d; } |