X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_client_curl_event.c;h=38e1a56b3d6d62a5146512a22bc80a7cb9470d1b;hp=ea5f6afe8ba3f20385d541abc76ce41399674bb3;hb=80bb9787a447fd8443b824f4b3f38ecf87eca9b6;hpb=2e92ec70991d53cb3d6d710ae7a6b3a6b31ec978;ds=sidebyside diff --git a/src/php_http_client_curl_event.c b/src/php_http_client_curl_event.c index ea5f6af..38e1a56 100644 --- a/src/php_http_client_curl_event.c +++ b/src/php_http_client_curl_event.c @@ -14,24 +14,11 @@ #if PHP_HTTP_HAVE_LIBCURL #if PHP_HTTP_HAVE_LIBEVENT -# if !PHP_HTTP_HAVE_LIBEVENT2 && /* just be really sure */ !(LIBEVENT_VERSION_NUMBER >= 0x02000000) -# include -# define event_base_new event_init -# define event_assign(e, b, s, a, cb, d) do {\ - event_set(e, s, a, cb, d); \ - event_base_set(b, e); \ - } while(0) -# else -# if PHP_HTTP_HAVE_LIBEVENT2 -# include -# include -# else -# error "libevent presence is unknown" -# endif -# endif -# ifndef DBG_EVENTS -# define DBG_EVENTS 0 -# endif + +#include +#ifndef DBG_EVENTS +# define DBG_EVENTS 0 +#endif typedef struct php_http_client_curl_event_context { php_http_client_t *client;