Solaris fixes

This commit is contained in:
Ron Pedde 2004-01-13 00:13:53 +00:00
parent 1c8d5e8b84
commit 25b3dd0679
3 changed files with 9 additions and 0 deletions

View File

@ -31,6 +31,9 @@ AM_CONDITIONAL(COND_REND_POSIX, test x$rend_howl = xfalse)
dnl Darwin's stupid cpp preprocessor.... dnl Darwin's stupid cpp preprocessor....
echo Host type is $host echo Host type is $host
case $host in case $host in
*solaris*)
CPPFLAGS="$CPPFLAGS -DHAVE_SOCKLEN_T"
LDFLAGS="$LDFLAGS -lnsl -lsocket";;
*linux*) *linux*)
CPPFLAGS="$CPPFLAGS -DHAVE_SOCKLEN_T";; CPPFLAGS="$CPPFLAGS -DHAVE_SOCKLEN_T";;
*darwin*) *darwin*)

View File

@ -27,6 +27,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <limits.h> #include <limits.h>
#include <pthread.h> #include <pthread.h>
#include <signal.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -48,6 +48,11 @@
#define MAXBACKLOG 50 #define MAXBACKLOG 50
#endif #endif
#ifndef INADDR_NONE
# define INADDR_NONE 0xFFFFFFFFU
#endif
/* /*
* u_igniore_sigpipe * u_igniore_sigpipe
* Ignore SIGPIPE if the default action is in effect. * Ignore SIGPIPE if the default action is in effect.