Look for libevent2 differently from libevent for platforms with both.

This commit is contained in:
Nicholas Marriott
2021-01-17 17:21:51 +00:00
parent dc1e1125a5
commit a3011be0d2
22 changed files with 48 additions and 70 deletions

View File

@ -27,6 +27,19 @@
#include <termios.h>
#include <wchar.h>
#ifdef HAVE_EVENT2_EVENT_H
#include <event2/event.h>
#include <event2/event_compat.h>
#include <event2/event_struct.h>
#include <event2/buffer.h>
#include <event2/buffer_compat.h>
#include <event2/bufferevent.h>
#include <event2/bufferevent_struct.h>
#include <event2/bufferevent_compat.h>
#else
#include <event.h>
#endif
#ifdef HAVE_MALLOC_TRIM
#include <malloc.h>
#endif