fixed event2 headers inclusion once more
authorAnatoliy Belsky <ab@php.net>
Sat, 23 Nov 2013 09:39:13 +0000 (09:39 +0000)
committerAnatoliy Belsky <ab@php.net>
Sat, 23 Nov 2013 09:39:13 +0000 (09:39 +0000)
php_http.c

index 4efec72..471ee80 100644 (file)
 #if PHP_HTTP_HAVE_CURL
 #      include <curl/curl.h>
 #      if PHP_HTTP_HAVE_EVENT
-#              include <event.h>
+#       if PHP_HTTP_HAVE_EVENT2
+#              include <event2/event.h>
+#              include <event2/event_struct.h>
+#       else
+#                  include <event.h>
+#       endif
 #      endif
 #endif
 #if PHP_HTTP_HAVE_SERF