Commit 7648c6c0 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

define INADDR_NONE so we compile on solaris


svn:r1295
parent 208625ae
Loading
Loading
Loading
Loading
+6 −0
Changes for src/common/util.c: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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