1
0

010-libevent2.patch 602 B

12345678910111213141516
  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. -#ifdef PHP_WIN32
  7. +//#ifdef PHP_WIN32
  8. /* XXX compiling with 2.x on Windows. Luckily the ext code works thanks to the
  9. compat exports from the libevent. However it might need to be adapted to the
  10. never version, so this ifdefs would go away. */
  11. +#if 1
  12. +/* force use of libevent2 on OpenWrt and by-pass compat event.h */
  13. # include <event2/event.h>
  14. # include <event2/event_compat.h>
  15. # include <event2/event_struct.h>