diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-02-15 06:24:06 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-02-15 06:24:06 +0500 |
commit | 2a0a42715e9e94441f7503e45d0f26c92ed239d9 (patch) | |
tree | b7304b77b760fdc6cf508d85f90eb8e66de68903 /include | |
parent | 2129e6154e3b48ef9568242af5d74c990c55dd6f (diff) | |
download | luaevent-prosody-2a0a42715e9e94441f7503e45d0f26c92ed239d9.tar.gz luaevent-prosody-2a0a42715e9e94441f7503e45d0f26c92ed239d9.zip |
luaevent.h: sys/time.h is not available with MSVC, use winsock2.h on windows.
Diffstat (limited to 'include')
-rw-r--r-- | include/luaevent.h | 4 |
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 { |