Browse Source

Fix up compilation on windows.

Nick Mathewson 13 years ago
parent
commit
69deb22f34
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/or/ntmain.c
  2. 1 1
      src/or/reasons.c

+ 1 - 0
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>

+ 1 - 1
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