luaevent.h: sys/time.h is not available with MSVC, use winsock2.h on windows.

Mon, 15 Feb 2010 06:24:06 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 15 Feb 2010 06:24:06 +0500
changeset 76
0ad46f11657a
parent 75
5a5f46aed0c1
child 77
ad37f03df138

luaevent.h: sys/time.h is not available with MSVC, use winsock2.h on windows.

include/luaevent.h file | annotate | diff | comparison | revisions
--- a/include/luaevent.h	Mon Feb 15 06:22:58 2010 +0500
+++ b/include/luaevent.h	Mon Feb 15 06:24:06 2010 +0500
@@ -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 {

mercurial