From a3e62bb56e174ee15ec4cd94d675f064d0ec5faa Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 18 Mar 2004 19:59:39 +0000 Subject: [PATCH] define INADDR_NONE so we compile on solaris svn:r1295 --- trunk/src/common/util.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trunk/src/common/util.c b/trunk/src/common/util.c index 87cdd97ce7..f3ffe676e7 100644 --- a/trunk/src/common/util.c +++ b/trunk/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