summaryrefslogtreecommitdiffstats
path: root/dnssd
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-01-12 15:45:34 +0100
committerSlávek Banko <[email protected]>2020-01-12 15:45:47 +0100
commit4304997180a1835c1ac9892eb1a27739896bb02a (patch)
tree5fa52e799c38577ee105a1eaa1e5d2274fc7918d /dnssd
parentedab2eca49ca082c5b51b6820b48042cc763f898 (diff)
downloadtdelibs-4304997180a1835c1ac9892eb1a27739896bb02a.tar.gz
tdelibs-4304997180a1835c1ac9892eb1a27739896bb02a.zip
Fix building with avahi support
+ Avahi detection was not performed at all + Added missing avahi-client detection + Fixed FTBFS in avahi related code Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 281e2da7f14eca57104dbd3f7da39506011729a8)
Diffstat (limited to 'dnssd')
-rw-r--r--dnssd/CMakeLists.txt2
-rw-r--r--dnssd/publicservice.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/dnssd/CMakeLists.txt b/dnssd/CMakeLists.txt
index 01359672f..844ee16f4 100644
--- a/dnssd/CMakeLists.txt
+++ b/dnssd/CMakeLists.txt
@@ -44,7 +44,7 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 1.0.0
- LINK tdecore-shared
+ LINK tdecore-shared ${AVAHI_TQT_LIBRARIES} ${AVAHI_CLIENT_LIBRARIES}
DEPENDENCIES tdeconfig_compiler
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/dnssd/publicservice.cpp b/dnssd/publicservice.cpp
index 0313fd17c..05b891258 100644
--- a/dnssd/publicservice.cpp
+++ b/dnssd/publicservice.cpp
@@ -56,7 +56,7 @@ class PublicServicePrivate
public:
PublicServicePrivate() : m_published(false), m_running(false), m_collision(false)
#ifdef HAVE_DNSSD
- , m_group(false)
+ , m_group(0)
#endif
{}
bool m_published;