summaryrefslogtreecommitdiff
path: root/event.h
diff options
context:
space:
mode:
authorroot <root>2008-11-17 03:37:08 +0000
committerroot <root>2008-11-17 03:37:08 +0000
commitc27a91776c880e9033a7a508953a37a64adf8e32 (patch)
tree34a5fa0f008dcf81d89d16954cd89b6b260dd2b3 /event.h
parent30085edcf5bec67cf26e3142f7a72bb96b8d6cd5 (diff)
*** empty log message ***
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