summaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-04-30 20:46:17 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-04-30 20:48:23 +0200
commit8719f4fcc1685a320e648166cf6720c3e33f0434 (patch)
tree28bc3e764d86ea249b4fd040b4ab7a9cb92b354d /src/gns
parent3cf07732fca4fd293874837833698fe0bfa279b2 (diff)
downloadgnunet-8719f4fcc1685a320e648166cf6720c3e33f0434.tar.gz
gnunet-8719f4fcc1685a320e648166cf6720c3e33f0434.zip
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
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-gns-proxy.c7
-rw-r--r--src/gns/test_gns_proxy.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index bae222499..eb8115026 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -29,11 +29,8 @@
29 */ 29 */
30#include "platform.h" 30#include "platform.h"
31#include <microhttpd.h> 31#include <microhttpd.h>
32#if HAVE_CURL_CURL_H 32/* Just included for the right curl.h */
33#include <curl/curl.h> 33#include "gnunet_curl_lib.h"
34#elif HAVE_GNURL_CURL_H
35#include <gnurl/curl.h>
36#endif
37#include <gnutls/gnutls.h> 34#include <gnutls/gnutls.h>
38#include <gnutls/x509.h> 35#include <gnutls/x509.h>
39#include <gnutls/abstract.h> 36#include <gnutls/abstract.h>
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c
index 2a7f8104b..053f5f898 100644
--- a/src/gns/test_gns_proxy.c
+++ b/src/gns/test_gns_proxy.c
@@ -24,11 +24,8 @@
24 * @author Martin Schanzenbach 24 * @author Martin Schanzenbach
25 */ 25 */
26#include "platform.h" 26#include "platform.h"
27#if HAVE_CURL_CURL_H 27/* Just included for the right curl.h */
28#include <curl/curl.h> 28#include "gnunet_curl_lib.h"
29#elif HAVE_GNURL_CURL_H
30#include <gnurl/curl.h>
31#endif
32#include <microhttpd.h> 29#include <microhttpd.h>
33#include "gnunet_util_lib.h" 30#include "gnunet_util_lib.h"
34#include "gnutls/x509.h" 31#include "gnutls/x509.h"