diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-01-17 17:21:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-01-17 17:21:51 +0000 |
commit | a3011be0d267a090c8bfa01a4ebe093bc203a1c4 (patch) | |
tree | 990fbfa2a16bd0c975679ece1bca5e8a21e96056 /compat.h | |
parent | dc1e1125a55af9a928a7cbe99026ad500c4271b1 (diff) |
Look for libevent2 differently from libevent for platforms with both.
Diffstat (limited to 'compat.h')
-rw-r--r-- | compat.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |