aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/test_gns_proxy.c')
-rw-r--r--src/gns/test_gns_proxy.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c
index 7411c9bc9..fb6d01fcd 100644
--- a/src/gns/test_gns_proxy.c
+++ b/src/gns/test_gns_proxy.c
@@ -24,7 +24,11 @@
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#include <curl/curl.h> 28#include <curl/curl.h>
29#elif HAVE_GNURL_CURL_H
30#include <gnurl/curl.h>
31#endif
28#include <microhttpd.h> 32#include <microhttpd.h>
29#include "gnunet_namestore_service.h" 33#include "gnunet_namestore_service.h"
30#include "gnunet_gns_service.h" 34#include "gnunet_gns_service.h"
@@ -246,7 +250,7 @@ static void
246start_curl (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 250start_curl (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
247{ 251{
248 GNUNET_asprintf (&url, 252 GNUNET_asprintf (&url,
249 "http://%s:%d/hello_world", 253 "http://%s:%d/hello_world",
250 TEST_DOMAIN, PORT); 254 TEST_DOMAIN, PORT);
251 curl = curl_easy_init (); 255 curl = curl_easy_init ();
252 curl_easy_setopt (curl, CURLOPT_URL, url); 256 curl_easy_setopt (curl, CURLOPT_URL, url);
@@ -475,4 +479,3 @@ main (int argc, char *const *argv)
475} 479}
476 480
477/* end of test_gns_vpn.c */ 481/* end of test_gns_vpn.c */
478