summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiraj Razick <siraj.razick@collabora.co.uk>2012-02-18 01:04:25 (GMT)
committerOlli Salli <olli.salli@collabora.co.uk>2012-02-22 18:43:52 (GMT)
commit57bfaa0d773041315d28e7fb09d412209afc9405 (patch)
tree22445100c281d9ad5c84aea3150ec3a95fd1a6bf
parent7aa9d6fa535378f475f5e71a4b963a47b65f7f22 (diff)
downloadtelepathy-salut-57bfaa0d773041315d28e7fb09d412209afc9405.tar.gz
telepathy-salut-57bfaa0d773041315d28e7fb09d412209afc9405.tar.xz
salut-connection: including avahi header only when we use USE_BACKEND_AVAHI
Including the file without any condtions results in a compilation error
-rw-r--r--src/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index a6d326d..e612a1e 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -19,6 +19,8 @@
#include "connection.h"
+#include <config.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -43,7 +45,9 @@
#include <salut/caps-channel-manager.h>
#include <salut/plugin-connection.h>
+#ifdef USE_BACKEND_AVAHI
#include "avahi-discovery-client.h"
+#endif
#include "capabilities.h"
#include "caps-hash.h"
#include "connection-contact-info.h"