mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 12:10:15 +01:00
dns-manager: fix build without libsoup
This commit is contained in:
parent
62fd027950
commit
bfcf402525
1 changed files with 8 additions and 4 deletions
|
|
@ -46,13 +46,17 @@
|
|||
#include "nm-dns-plugin.h"
|
||||
#include "nm-dns-dnsmasq.h"
|
||||
|
||||
#ifdef HAVE_LIBSOUP
|
||||
#if HAVE_LIBSOUP
|
||||
#include <libsoup/soup.h>
|
||||
|
||||
#ifdef SOUP_CHECK_VERSION
|
||||
#if SOUP_CHECK_VERSION (2, 40, 0)
|
||||
#define DOMAIN_IS_VALID(domain) (*(domain) && !soup_tld_domain_is_public_suffix (domain))
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (SOUP_CHECK_VERSION) && SOUP_CHECK_VERSION (2, 40, 0)
|
||||
#define DOMAIN_IS_VALID(domain) (*(domain) && !soup_tld_domain_is_public_suffix (domain))
|
||||
#else
|
||||
#ifndef DOMAIN_IS_VALID
|
||||
#define DOMAIN_IS_VALID(domain) (*(domain))
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue