961fb360861371083fe6bd8f30eecd60c5b8e66a
[feed/packages.git] / lang / php5-pecl-libevent / patches / 010-libevent2.patch
1 --- a/libevent.c
2 +++ b/libevent.c
3 @@ -42,10 +42,12 @@
4 (rsrc = (rsrc_type) zend_fetch_resource(passed_id TSRMLS_CC, default_id, resource_type_name, NULL, 1, resource_type))
5 #endif
6
7 -#ifdef PHP_WIN32
8 +//#ifdef PHP_WIN32
9 /* XXX compiling with 2.x on Windows. Luckily the ext code works thanks to the
10 compat exports from the libevent. However it might need to be adapted to the
11 never version, so this ifdefs would go away. */
12 +#if 1
13 +/* force use of libevent2 on OpenWrt and by-pass compat event.h */
14 # include <event2/event.h>
15 # include <event2/event_compat.h>
16 # include <event2/event_struct.h>