summaryrefslogtreecommitdiff
path: root/src/dns-manager
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-12-20 09:56:19 -0500
committerDan Winship <danw@gnome.org>2013-12-20 09:56:19 -0500
commitbfcf40252583b40c45b10b8d7553d072e6c721be (patch)
tree9d481979a52545c1ed4cec2b9938d65d68f3656d /src/dns-manager
parent62fd0279508c8199d73f4bf2392abbe25c14bb26 (diff)
downloadNetworkManager-bfcf40252583b40c45b10b8d7553d072e6c721be.tar.gz
dns-manager: fix build without libsoup
Diffstat (limited to 'src/dns-manager')
-rw-r--r--src/dns-manager/nm-dns-manager.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/dns-manager/nm-dns-manager.c b/src/dns-manager/nm-dns-manager.c
index e23b58760e..44c6f11158 100644
--- a/src/dns-manager/nm-dns-manager.c
+++ b/src/dns-manager/nm-dns-manager.c
@@ -46,13 +46,17 @@
#include "nm-dns-plugin.h"
#include "nm-dns-dnsmasq.h"
-#ifdef HAVE_LIBSOUP
+#if HAVE_LIBSOUP
#include <libsoup/soup.h>
-#endif
-#if defined (SOUP_CHECK_VERSION) && SOUP_CHECK_VERSION (2, 40, 0)
+#ifdef SOUP_CHECK_VERSION
+#if SOUP_CHECK_VERSION (2, 40, 0)
#define DOMAIN_IS_VALID(domain) (*(domain) && !soup_tld_domain_is_public_suffix (domain))
-#else
+#endif
+#endif
+#endif
+
+#ifndef DOMAIN_IS_VALID
#define DOMAIN_IS_VALID(domain) (*(domain))
#endif