diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-18 19:59:39 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-18 19:59:39 +0000 |
commit | 7648c6c0ea150cbee153c236093971c434dee9dd (patch) | |
tree | 4a3f8bc7a98e96908de658a28895fef4e92e856b /src/common | |
parent | 208625ae3188055506fdceb6720b97cf3efade11 (diff) | |
download | tor-7648c6c0ea150cbee153c236093971c434dee9dd.tar tor-7648c6c0ea150cbee153c236093971c434dee9dd.tar.gz |
define INADDR_NONE so we compile on solaris
svn:r1295
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c index 87cdd97ce..f3ffe676e 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -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 |