summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index 6e26a02c..828c956d 100644
--- a/compat.h
+++ b/compat.h
@@ -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