aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/buffer_event.h4
-rw-r--r--include/event_buffer.h4
-rw-r--r--include/event_callback.h4
-rw-r--r--include/luaevent.h4
4 files changed, 4 insertions, 12 deletions
diff --git a/include/buffer_event.h b/include/buffer_event.h
index b3fe3c1..ad8fc55 100644
--- a/include/buffer_event.h
+++ b/include/buffer_event.h
@@ -4,10 +4,6 @@
#define BUFFER_EVENT_H
#include "luaevent.h"
-#include <lua.h>
-#include <sys/types.h>
-#include <sys/time.h>
-#include <event.h>
typedef struct {
struct bufferevent* ev;
diff --git a/include/event_buffer.h b/include/event_buffer.h
index a7b1525..0ee4cd2 100644
--- a/include/event_buffer.h
+++ b/include/event_buffer.h
@@ -4,10 +4,6 @@
#define EVENT_BUFFER_H
#include "luaevent.h"
-#include <lua.h>
-#include <sys/types.h>
-#include <sys/time.h>
-#include <event.h>
typedef struct {
struct evbuffer* buffer;
diff --git a/include/event_callback.h b/include/event_callback.h
index 38aedb8..fcda8ce 100644
--- a/include/event_callback.h
+++ b/include/event_callback.h
@@ -4,10 +4,6 @@
#define EVENT_CALLBACK
#include "luaevent.h"
-#include <lua.h>
-#include <sys/types.h>
-#include <sys/time.h>
-#include <event.h>
typedef struct {
struct event ev;
diff --git a/include/luaevent.h b/include/luaevent.h
index ef3386b..e419998 100644
--- a/include/luaevent.h
+++ b/include/luaevent.h
@@ -5,7 +5,11 @@
#include <lua.h>
#include <sys/types.h>
+#ifdef _WIN32
+#include <winsock2.h>
+#else
#include <sys/time.h>
+#endif
#include <event.h>
typedef struct {