summaryrefslogtreecommitdiff
path: root/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'event.h')
-rw-r--r--event.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/event.h b/event.h
index b8c0862..3059118 100644
--- a/event.h
+++ b/event.h
@@ -50,6 +50,12 @@
extern "C" {
#endif
+/* we need sys/time.h for struct timeval only */
+#if !defined (WIN32) || defined (__MINGW32__)
+# include <time.h> /* mingw seems to need this, for whatever reason */
+# include <sys/time.h>
+#endif
+
struct event_base;
#define EVLIST_TIMEOUT 0x01