[or-cvs] [tor/master] Fix up compilation on windows.

nickm at torproject.org nickm at torproject.org
Thu Aug 19 18:59:44 UTC 2010


Author: Nick Mathewson <nickm at torproject.org>
Date: Thu, 19 Aug 2010 14:59:44 -0400
Subject: Fix up compilation on windows.
Commit: 69deb22f34968d0c7e81df76157661b344cd09c9

---
 src/or/ntmain.c  |    1 +
 src/or/reasons.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/or/ntmain.c b/src/or/ntmain.c
index 9bcb704..7163f5c 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 db0f2e9..ade9a3a 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
-- 
1.7.1



More information about the tor-commits mailing list