From: Michael Wallner Date: Tue, 26 Nov 2013 10:34:23 +0000 (+0100) Subject: fix ws X-Git-Tag: RELEASE_2_0_1~1 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=c196e4812f4b506107ae25f0efd10206b37a0bea fix ws --- diff --git a/php_http.c b/php_http.c index 471ee80..c3838b8 100644 --- a/php_http.c +++ b/php_http.c @@ -20,12 +20,12 @@ #if PHP_HTTP_HAVE_CURL # include # if PHP_HTTP_HAVE_EVENT -# if PHP_HTTP_HAVE_EVENT2 -# include -# include -# else -# include -# endif +# if PHP_HTTP_HAVE_EVENT2 +# include +# include +# else +# include +# endif # endif #endif #if PHP_HTTP_HAVE_SERF diff --git a/php_http_client_curl.c b/php_http_client_curl.c index 52e5e02..ce7c3db 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -17,20 +17,20 @@ #if PHP_HTTP_HAVE_EVENT # if !PHP_HTTP_HAVE_EVENT2 && /* just be really sure */ !(LIBEVENT_VERSION_NUMBER >= 0x02000000) -# include +# 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_EVENT2 -# include -# include -# else -# error "libevent presence is unknown" -# endif -# endif +# else +# if PHP_HTTP_HAVE_EVENT2 +# include +# include +# else +# error "libevent presence is unknown" +# endif +# endif # ifndef DBG_EVENTS # define DBG_EVENTS 0 # endif