solaris 10 fix: use sys/filio.h for FIONREAD. untested.

REF: <20060111215014.GA601@49.180.97-84.rev.gaoland.net>
This commit is contained in:
Oswald Buddenhagen 2006-01-12 06:36:44 +00:00
parent 8b6ac97fe4
commit d414d0aae2
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@ if test "$GCC" = yes; then
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes" CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes"
fi fi
AC_CHECK_HEADERS([sys/filio.h])
AC_CHECK_FUNCS(vasprintf) AC_CHECK_FUNCS(vasprintf)
AC_CHECK_LIB(socket, socket, [SOCK_LIBS="-lsocket"]) AC_CHECK_LIB(socket, socket, [SOCK_LIBS="-lsocket"])

View File

@ -36,6 +36,9 @@
#include <ctype.h> #include <ctype.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef HAVE_SYS_FILIO_H
# include <sys/filio.h>
#endif
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include <arpa/inet.h> #include <arpa/inet.h>