From: Roger Dingledine Date: Thu, 18 Mar 2004 19:59:39 +0000 (+0000) Subject: define INADDR_NONE so we compile on solaris X-Git-Tag: tor-0.0.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7648c6c0ea150cbee153c236093971c434dee9dd;p=thirdparty%2Ftor.git define INADDR_NONE so we compile on solaris svn:r1295 --- diff --git a/src/common/util.c b/src/common/util.c index 87cdd97ce7..f3ffe676e7 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -8,6 +8,12 @@ #include #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