[libsoup] meson: Unbreak build of pull-api-test
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [libsoup] meson: Unbreak build of pull-api-test
- Date: Tue, 17 Apr 2018 08:50:13 +0000 (UTC)
commit fed0e93cbfd467c5eeadd1b4124e75ce6ce4e60e
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date:   Mon Apr 16 19:56:21 2018 +0200
    meson: Unbreak build of pull-api-test
    
    The #if HAVE_APACHE checks caused compiler errors after HAVE_APACHE was
    turned into an empty macro. Unbreak by replacing #if with #ifdef.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782410
 tests/pull-api-test.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/pull-api-test.c b/tests/pull-api-test.c
index 2915b9e..5550378 100644
--- a/tests/pull-api-test.c
+++ b/tests/pull-api-test.c
@@ -12,7 +12,7 @@ authenticate (SoupSession *session, SoupMessage *msg,
                soup_auth_authenticate (auth, "user2", "realm2");
 }
 
-#if HAVE_APACHE
+#ifdef HAVE_APACHE
 static void
 get_correct_response (const char *uri)
 {
@@ -514,7 +514,7 @@ main (int argc, char **argv)
        apache_init ();
 
        base_uri = "http://127.0.0.1:47524/";
-#if HAVE_APACHE
+#ifdef HAVE_APACHE
        get_correct_response (base_uri);
 #endif
 
@@ -524,7 +524,7 @@ main (int argc, char **argv)
 
        ret = g_test_run ();
 
-#if HAVE_APACHE
+#ifdef HAVE_APACHE
        soup_buffer_free (correct_response);
 #endif
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]