From 7648c6c0ea150cbee153c236093971c434dee9dd Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 18 Mar 2004 19:59:39 +0000 Subject: define INADDR_NONE so we compile on solaris svn:r1295 --- src/common/util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-54-g00ecf