[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] define INADDR_NONE so we compile on solaris
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
util.c
Log Message:
define INADDR_NONE so we compile on solaris
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- util.c 17 Mar 2004 07:28:09 -0000 1.62
+++ util.c 18 Mar 2004 19:59:39 -0000 1.63
@@ -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