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 4efec72d613f6667c0594411aa6204028e3a8009..471ee80f4717b4f8b2693ed1293fade3d4e61a25 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