aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-04 04:01:19 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-04 04:01:19 +0000
commitb74b72a5ce9dc347e66f786f2be5240945e0d461 (patch)
treed00138aa37a48205876fae7ca375eb51ff286be2 /src/common
parentd0c158c8d69ead9c5d60011589bdf4d379aca208 (diff)
downloadtor-b74b72a5ce9dc347e66f786f2be5240945e0d461.tar
tor-b74b72a5ce9dc347e66f786f2be5240945e0d461.tar.gz
Fix windows build
svn:r2670
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.c2
-rw-r--r--src/common/torgzip.c4
-rw-r--r--src/common/util.c6
3 files changed, 8 insertions, 4 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 6ce26afc4..7ecc6d9b4 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -8,6 +8,7 @@
#define _GNU_SOURCE
#include "orconfig.h"
+#include "compat.h"
#ifdef MS_WINDOWS
#include <io.h>
@@ -65,7 +66,6 @@
#include <string.h>
#include <assert.h>
-#include "compat.h"
#include "log.h"
#include "util.h"
diff --git a/src/common/torgzip.c b/src/common/torgzip.c
index 660ab0e05..0491d87d1 100644
--- a/src/common/torgzip.c
+++ b/src/common/torgzip.c
@@ -13,7 +13,11 @@
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
+#ifdef MS_WINDOWS
+#include "..\..\contrib\zlib\zlib.h"
+#else
#include <zlib.h>
+#endif
#include "util.h"
#include "log.h"
diff --git a/src/common/util.c b/src/common/util.c
index dc5f29bba..76b7254cd 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -14,6 +14,9 @@
#define _GNU_SOURCE
#include "orconfig.h"
+#include "util.h"
+#include "log.h"
+#include "crypto.h"
/* XXXX probably some of these are unneeded. find out which. */
#ifdef MS_WINDOWS
@@ -31,9 +34,6 @@
#include <string.h>
#include <assert.h>
-#include "util.h"
-#include "log.h"
-#include "crypto.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>