summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-08-19 14:59:44 -0400
committerNick Mathewson <nickm@torproject.org>2010-08-19 14:59:44 -0400
commit69deb22f34968d0c7e81df76157661b344cd09c9 (patch)
treee79412591653def9349836dd5ab5c6e9d974a795
parent1f81474b2eaa1600a5d1335fd6baca11c3a5224d (diff)
downloadtor-69deb22f34968d0c7e81df76157661b344cd09c9.tar.gz
tor-69deb22f34968d0c7e81df76157661b344cd09c9.zip
Fix up compilation on windows.
-rw-r--r--src/or/ntmain.c1
-rw-r--r--src/or/reasons.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/or/ntmain.c b/src/or/ntmain.c
index 9bcb7047eb..7163f5c9a7 100644
--- a/src/or/ntmain.c
+++ b/src/or/ntmain.c
@@ -7,6 +7,7 @@
#include "or.h"
#include "config.h"
#include "main.h"
+#include "ntmain.h"
#ifdef HAVE_EVENT2_EVENT_H
#include <event2/event.h>
diff --git a/src/or/reasons.c b/src/or/reasons.c
index db0f2e9345..ade9a3abfc 100644
--- a/src/or/reasons.c
+++ b/src/or/reasons.c
@@ -168,7 +168,7 @@ errno_to_stream_end_reason(int e)
S_CASE(ENOTCONN):
S_CASE(ENETUNREACH):
return END_STREAM_REASON_INTERNAL;
- E_CASE(EHOSTUNREACH):
+ S_CASE(EHOSTUNREACH):
/* XXXX022
* The correct behavior is END_STREAM_REASON_NOROUTE, but older
* clients don't recognize it. So we're going to continue sending