summaryrefslogtreecommitdiff
path: root/event_tagging.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-07 21:01:26 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-07 21:01:26 +0000
commit4e1ec3e05e39699025e087929b84f3634929ae4c (patch)
treee650c33782e8697430a53874245dd2d7af85900f /event_tagging.c
parent45c7ab25de2dea155332cc144c1f94f5c073c919 (diff)
downloadlibevent-4e1ec3e05e39699025e087929b84f3634929ae4c.tar.gz
Make all the C files in the libraries compile under MSVC 2005 Express. There are still a few warnings, and probably some subtle issues, but it's better than nothing.
svn:r499
Diffstat (limited to 'event_tagging.c')
-rw-r--r--event_tagging.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/event_tagging.c b/event_tagging.c
index 93ded7e5..1646fb10 100644
--- a/event_tagging.c
+++ b/event_tagging.c
@@ -25,15 +25,20 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/types.h>
-#include <sys/param.h>
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
+#include <winsock2.h>
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#else
@@ -52,7 +57,9 @@
#ifndef WIN32
#include <syslog.h>
#endif
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include "event.h"
#include "log.h"