Explorar o código

define INADDR_NONE so we compile on solaris

svn:r1295
Roger Dingledine %!s(int64=22) %!d(string=hai) anos
pai
achega
7648c6c0ea
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/common/util.c

+ 6 - 0
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