X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_pool_api.c;h=7dc809ba665f60883958d4748d92abf006f857a6;hb=445dd5f0580e5073d69d3ef7267671686e18f4e7;hp=a9cd4ede33fbc357deadbefd837308274ac20dbc;hpb=48981407809f0404e0427637f8474c9ccc2eafa4;p=m6w6%2Fext-http diff --git a/http_request_pool_api.c b/http_request_pool_api.c index a9cd4ed..7dc809b 100644 --- a/http_request_pool_api.c +++ b/http_request_pool_api.c @@ -18,8 +18,10 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif - #include "php.h" + +#if defined(ZEND_ENGINE_2) && defined(HTTP_HAVE_CURL) + #include "php_http.h" #include "php_http_std_defs.h" #include "php_http_api.h" @@ -28,8 +30,6 @@ #include "php_http_request_object.h" #include "php_http_requestpool_object.h" -#ifdef ZEND_ENGINE_2 - #ifndef HTTP_DEBUG_REQPOOLS # define HTTP_DEBUG_REQPOOLS 0 #endif @@ -240,7 +240,7 @@ static int http_request_pool_compare_handles(void *h1, void *h2) } /* }}} */ -#endif /* ZEND_ENGINE_2 */ +#endif /* ZEND_ENGINE_2 && HTTP_HAVE_CURL */ /*