[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix windows build: do not spuriously include openssl where ...



Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv12614/src/common

Modified Files:
	compat.c 
Log Message:
Fix windows build: do not spuriously include openssl where not needed; handle lack of gethostbyname_r properly.

Index: compat.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- compat.c	13 Feb 2005 22:32:25 -0000	1.35
+++ compat.c	22 Feb 2005 02:51:55 -0000	1.36
@@ -72,10 +72,6 @@
 #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 @@
 #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 */