summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-07-28 19:41:39 +0000
committerNick Mathewson <nickm@torproject.org>2009-07-28 19:41:39 +0000
commit5b5b880be7452eaf42d401f3ad54474ae60a9dbf (patch)
treeefbb466328dea7f1b838c72e450954558a5ed1d5 /log.c
parent12199fa7a51ee93479fa0db30c2f7b9c8159bb94 (diff)
downloadlibevent-5b5b880be7452eaf42d401f3ad54474ae60a9dbf.tar.gz
Various MSVC cleanups from Brodie Thiesfield.
svn:r1385
Diffstat (limited to 'log.c')
-rw-r--r--log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/log.c b/log.c
index 67e24bef..db620990 100644
--- a/log.c
+++ b/log.c
@@ -42,6 +42,7 @@
#endif
#ifdef WIN32
+#include <winsock2.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
@@ -49,7 +50,7 @@
#include <sys/types.h>
#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
-#else
+#elif !defined(WIN32)
#include <sys/_time.h>
#endif
#include <stdio.h>