From 69deb22f34968d0c7e81df76157661b344cd09c9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 19 Aug 2010 14:59:44 -0400 Subject: [PATCH] Fix up compilation on windows. --- src/or/ntmain.c | 1 + src/or/reasons.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 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