From 8719f4fcc1685a320e648166cf6720c3e33f0434 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 30 Apr 2019 20:46:17 +0200 Subject: Make gnurl and curl mutually exclusive. This prevents issues when both curl and gnurl are available, but one of them is outdated. To get curl.h, we also now just include gnunet_curl_lib.h instead of writing the preprocessor conditionals manually. Fixes #5707 --- src/pt/test_gns_vpn.c | 7 ++----- src/pt/test_gnunet_vpn.c | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'src/pt') diff --git a/src/pt/test_gns_vpn.c b/src/pt/test_gns_vpn.c index 069277a00..90405fe37 100644 --- a/src/pt/test_gns_vpn.c +++ b/src/pt/test_gns_vpn.c @@ -37,11 +37,8 @@ * you should get a warning that gnunet-dns2gns failed to 'bind'. */ #include "platform.h" -#if HAVE_CURL_CURL_H -#include -#elif HAVE_GNURL_CURL_H -#include -#endif +/* Just included for the right curl.h */ +#include "gnunet_curl_lib.h" #include #include "gnunet_identity_service.h" #include "gnunet_namestore_service.h" diff --git a/src/pt/test_gnunet_vpn.c b/src/pt/test_gnunet_vpn.c index 0afd0f94b..7cc77fe24 100644 --- a/src/pt/test_gnunet_vpn.c +++ b/src/pt/test_gnunet_vpn.c @@ -24,11 +24,8 @@ * @author Christian Grothoff */ #include "platform.h" -#if HAVE_CURL_CURL_H -#include -#elif HAVE_GNURL_CURL_H -#include -#endif +/* Just included for the right curl.h */ +#include "gnunet_curl_lib.h" #include #include "gnunet_vpn_service.h" #include "gnunet_testing_lib.h" -- cgit v1.2.3