commit c66f3f58b3740b9380e5cc466eeefb808249c6cd Author: George Kadianakis desnacked@gmail.com Date: Fri Oct 7 16:00:47 2011 +0200
Make it compile on Windows™. --- src/managed.c | 2 ++ src/sha256.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/managed.c b/src/managed.c index 4178b97..99f8290 100644 --- a/src/managed.c +++ b/src/managed.c @@ -15,7 +15,9 @@ #include <event2/event.h> #include <event2/listener.h>
+#ifndef _WIN32 #include <arpa/inet.h> /* for inet_ntoa() */ +#endif
/** Holds all the parameters provided by tor through environment variables. */ diff --git a/src/sha256.c b/src/sha256.c index fccbde6..a49bf3b 100644 --- a/src/sha256.c +++ b/src/sha256.c @@ -7,7 +7,10 @@ #include "util.h"
#include "sha256.h" -#include <arpa/inet.h> /* for htonl/ntohl */ + +#ifndef _WIN32 +#include <arpa/inet.h> /* for inet_ntoa() */ +#endif
#define STMT_BEGIN do { #define STMT_END } while (0)