From 25b3dd0679bc441b4f97718c3a35a748959ef049 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Tue, 13 Jan 2004 00:13:53 +0000 Subject: [PATCH] Solaris fixes --- configure.in | 3 +++ src/configfile.c | 1 + src/uici.c | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/configure.in b/configure.in index 2596a8dc..d25ed35a 100644 --- a/configure.in +++ b/configure.in @@ -31,6 +31,9 @@ AM_CONDITIONAL(COND_REND_POSIX, test x$rend_howl = xfalse) dnl Darwin's stupid cpp preprocessor.... echo Host type is $host case $host in +*solaris*) + CPPFLAGS="$CPPFLAGS -DHAVE_SOCKLEN_T" + LDFLAGS="$LDFLAGS -lnsl -lsocket";; *linux*) CPPFLAGS="$CPPFLAGS -DHAVE_SOCKLEN_T";; *darwin*) diff --git a/src/configfile.c b/src/configfile.c index 2c479754..0ab13276 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include diff --git a/src/uici.c b/src/uici.c index 4d3f0235..d1b233fd 100644 --- a/src/uici.c +++ b/src/uici.c @@ -48,6 +48,11 @@ #define MAXBACKLOG 50 #endif +#ifndef INADDR_NONE +# define INADDR_NONE 0xFFFFFFFFU +#endif + + /* * u_igniore_sigpipe * Ignore SIGPIPE if the default action is in effect.