From b91a5aa0a66b844f6691fa457f6767817ced2410 Mon Sep 17 00:00:00 2001 From: Anatoliy Belsky Date: Sat, 23 Nov 2013 08:38:45 +0000 Subject: [PATCH 1/1] fix headers again, avoid header clashing including event2/*.h --- php_http_client_curl.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/php_http_client_curl.c b/php_http_client_curl.c index 682e1eb..01e626d 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -16,15 +16,20 @@ #if PHP_HTTP_HAVE_CURL #if PHP_HTTP_HAVE_EVENT -# include # if !PHP_HTTP_HAVE_EVENT2 && /* 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 -# include +# if PHP_HTTP_HAVE_EVENT2 +# include +# include +# else +# error "libevent presence is unknown" +# endif # endif # ifndef DBG_EVENTS # define DBG_EVENTS 0 -- 2.30.2