aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-02-22 02:51:55 +0000
committerNick Mathewson <nickm@torproject.org>2005-02-22 02:51:55 +0000
commit6bd81c9ee2a89ca29558be795bc4c212ad447dc2 (patch)
tree18f83c619923a001aa9a1fe07ac14cae23e2183f /src/common
parent8991af604cd93033dfeac07c0c78747e83aad8d2 (diff)
downloadtor-6bd81c9ee2a89ca29558be795bc4c212ad447dc2.tar
tor-6bd81c9ee2a89ca29558be795bc4c212ad447dc2.tar.gz
Fix windows build: do not spuriously include openssl where not needed; handle lack of gethostbyname_r properly.
svn:r3644
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 6f9e68803..f80e1b4b4 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -72,10 +72,6 @@ const char compat_c_id[] = "$Id$";
#include "log.h"
#include "util.h"
-#ifdef TOR_IS_MULTITHREADED
-#include <openssl/crypto.h>
-#endif
-
/* Inline the strl functions if the platform doesn't have them. */
#ifndef HAVE_STRLCPY
#include "strlcpy.c"
@@ -537,7 +533,7 @@ int tor_lookup_hostname(const char *name, uint32_t *addr)
#ifdef HAVE_GETHOSTBYNAME_R
ent = gethostbyname_r(name);
#else
- struct hostent *ent;
+ ent = gethostbyname(name);
#endif
if (ent) {
/* break to remind us if we move away from IPv4 */