# [PATCH] http-push: fix missing "#ifdef USE_CURL_MULTI" around "is_running_queue"

3 messages from 2009-05-10 to 2009-05-12. Participants: Christian Couder, Tay Ray Chuan.
Thread: https://gitlist.dev/t/19274

## Christian Couder, 2009-05-10 16:44

Subject: [PATCH] http-push: fix missing "#ifdef USE_CURL_MULTI" around "is_running_queue"
Message-ID: <20090510164431.3526.47427.chriscool@tuxfamily.org>
URL: https://gitlist.dev/e/20090510164431.3526.47427.chriscool%40tuxfamily.org

```
As it is breaking the build when USE_CURL_MULTI is not defined.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 http-push.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

This patch applies to pu.

diff --git a/http-push.c b/http-push.c
index ef1a9f3..14f3996 100644
--- a/http-push.c
+++ b/http-push.c
@@ -2291,7 +2291,9 @@ int main(int argc, char **argv)
 		repo->url = rewritten_url;
 	}
 
+#ifdef USE_CURL_MULTI
 	is_running_queue = 0;
+#endif
 
 	/* Verify DAV compliance/lock support */
 	if (!locking_available()) {
-- 
1.6.3.rc1.112.g17e25

```

## Tay Ray Chuan, 2009-05-11 12:25

Subject: Re: [PATCH] http-push: fix missing "#ifdef USE_CURL_MULTI" around "is_running_queue"
Message-ID: <be6fef0d0905110525p7e7072d3y18f5c99b782c9bf9@mail.gmail.com>
URL: https://gitlist.dev/e/be6fef0d0905110525p7e7072d3y18f5c99b782c9bf9%40mail.gmail.com
In-Reply-To: <20090510164431.3526.47427.chriscool@tuxfamily.org>

```
Hi,

On Mon, May 11, 2009 at 12:44 AM, Christian Couder
<chriscool@tuxfamily.org> wrote:
> As it is breaking the build when USE_CURL_MULTI is not defined.

thanks for catching this. By the way, how did you catch this? Are you
building without USE_CURL_MULTI defined?

-- 
Cheers,
Ray Chuan

```

## Christian Couder, 2009-05-12 04:25

Subject: Re: [PATCH] http-push: fix missing "#ifdef USE_CURL_MULTI" around "is_running_queue"
Message-ID: <200905120625.07383.chriscool@tuxfamily.org>
URL: https://gitlist.dev/e/200905120625.07383.chriscool%40tuxfamily.org
In-Reply-To: <be6fef0d0905110525p7e7072d3y18f5c99b782c9bf9@mail.gmail.com>

```
Hi,

Le lundi 11 mai 2009, Tay Ray Chuan a écrit :
> Hi,
>
> On Mon, May 11, 2009 at 12:44 AM, Christian Couder
>
> <chriscool@tuxfamily.org> wrote:
> > As it is breaking the build when USE_CURL_MULTI is not defined.
>
> thanks for catching this. By the way, how did you catch this? Are you
> building without USE_CURL_MULTI defined?

My main development box still runs an old Kubuntu Feisty (7.04). It
has some libcurl3 packages version 7.15.5-1ubuntu2.

In "/usr/include/curl/curlver.h", I have:

#define LIBCURL_VERSION_NUM 0x070f05

and in "http.h" there is:

#if LIBCURL_VERSION_NUM >= 0x071000
#define USE_CURL_MULTI
#define DEFAULT_MAX_REQUESTS 5
#endif

so yes, I think USE_CURL_MULTI is not defined on my box and that's why
the build failed on it.

Regards,
Christian.

```
