]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
define INADDR_NONE so we compile on solaris
authorRoger Dingledine <arma@torproject.org>
Thu, 18 Mar 2004 19:59:39 +0000 (19:59 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 18 Mar 2004 19:59:39 +0000 (19:59 +0000)
svn:r1295

src/common/util.c

index 87cdd97ce75ca036f6446f6112d4f434d0b83a85..f3ffe676e79571d84e2407085a0968442a265935 100644 (file)
@@ -8,6 +8,12 @@
 #include <sys/utsname.h>
 #endif
 
+/* used by inet_addr, not defined on solaris anywhere!? */
+#ifndef INADDR_NONE
+#define INADDR_NONE ((unsigned long) -1)
+#endif
+
+/* in-line the strl functions */
 #ifndef HAVE_STRLCPY
 #include "strlcpy.c"
 #endif