[or-cvs] backport old SPARC 2.8 build patch

Nick Mathewson nickm at seul.org
Tue Jan 4 06:23:21 UTC 2005


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

Modified Files:
      Tag: tor-0_0_9-patches
	compat.c util.c 
Log Message:
backport old SPARC 2.8 build patch

Index: compat.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.c,v
retrieving revision 1.22.2.2
retrieving revision 1.22.2.3
diff -u -d -r1.22.2.2 -r1.22.2.3
--- compat.c	3 Jan 2005 19:27:31 -0000	1.22.2.2
+++ compat.c	4 Jan 2005 06:23:18 -0000	1.22.2.3
@@ -75,6 +75,11 @@
 #include "strlcat.c"
 #endif
 
+/* used by inet_addr, not defined on solaris anywhere!? */
+#ifndef INADDR_NONE
+#define INADDR_NONE ((unsigned long) -1)
+#endif
+
 /** Replacement for snprintf.  Differs from platform snprintf in two
  * ways: First, always NUL-terminates its output.  Second, always
  * returns -1 if the result is truncated.  (Note that this return

Index: util.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.195
retrieving revision 1.195.2.1
diff -u -d -r1.195 -r1.195.2.1
--- util.c	8 Dec 2004 00:40:01 -0000	1.195
+++ util.c	4 Jan 2005 06:23:18 -0000	1.195.2.1
@@ -81,11 +81,6 @@
 #include <fcntl.h>
 #endif
 
-/* used by inet_addr, not defined on solaris anywhere!? */
-#ifndef INADDR_NONE
-#define INADDR_NONE ((unsigned long) -1)
-#endif
-
 #ifndef O_BINARY
 #define O_BINARY 0
 #endif



More information about the tor-commits mailing list