aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-02-15 06:24:06 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-02-15 06:24:06 +0500
commit2a0a42715e9e94441f7503e45d0f26c92ed239d9 (patch)
treeb7304b77b760fdc6cf508d85f90eb8e66de68903
parent2129e6154e3b48ef9568242af5d74c990c55dd6f (diff)
downloadluaevent-prosody-2a0a42715e9e94441f7503e45d0f26c92ed239d9.tar.gz
luaevent-prosody-2a0a42715e9e94441f7503e45d0f26c92ed239d9.zip
luaevent.h: sys/time.h is not available with MSVC, use winsock2.h on windows.
-rw-r--r--include/luaevent.h4
1 files changed, 4 insertions, 0 deletions
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 {