You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
517 B

  1. --- a/libevent.c
  2. +++ b/libevent.c
  3. @@ -37,10 +37,12 @@
  4. # define LIBEVENT_SOCKETS_SUPPORT
  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>