X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_pool_api.c;h=ce1257e4dcb42555e65e3e570e39df1c81e92d4f;hp=e67b142f5da7ebb29286a59125c82a542982a034;hb=5eab9789044c40c91512d27ba5663cdf04b8b972;hpb=22616d7660e06425a33ffefe748d4aa6067c2a43 diff --git a/http_request_pool_api.c b/http_request_pool_api.c index e67b142..ce1257e 100644 --- a/http_request_pool_api.c +++ b/http_request_pool_api.c @@ -86,7 +86,7 @@ PHP_HTTP_API http_request_pool *_http_request_pool_init(http_request_pool *pool TSRMLS_SET_CTX(pool->tsrm_ls); -#if HTTP_HAVE_EVENT +#ifdef HTTP_HAVE_EVENT pool->timeout = ecalloc(1, sizeof(struct event)); curl_multi_setopt(pool->ch, CURLMOPT_SOCKETDATA, pool); curl_multi_setopt(pool->ch, CURLMOPT_SOCKETFUNCTION, http_request_pool_socket_callback); @@ -297,7 +297,7 @@ PHP_HTTP_API void _http_request_pool_dtor(http_request_pool *pool) fprintf(stderr, "Destructing request pool %p\n", pool); #endif -#if HTTP_HAVE_EVENT +#ifdef HTTP_HAVE_EVENT efree(pool->timeout); #endif