From 5030d53ff08665d27e388244aa22b272716240bc Mon Sep 17 00:00:00 2001 From: dscho Date: Sun, 9 Feb 2003 15:04:00 +0000 Subject: converted CARD{8,16,32} to uint{8,16,32}_t and included support for stdint.h --- sockets.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'sockets.c') diff --git a/sockets.c b/sockets.c index 0c560f2..3f4d69b 100644 --- a/sockets.c +++ b/sockets.c @@ -39,8 +39,12 @@ * USA. */ -#include +#include "rfb.h" + +#ifdef HAVE_SYS_TYPES_H #include +#endif + #ifdef WIN32 #pragma warning (disable: 4018 4761) #define close closesocket @@ -49,14 +53,23 @@ #define ETIMEDOUT WSAETIMEDOUT #define write(sock,buf,len) send(sock,buf,len,0) #else +#ifdef HAVE_SYS_TIME_H #include +#endif +#ifdef HAVE_SYS_SOCKET_H #include +#endif +#ifdef HAVE_NETINET_IN_H #include #include #include -#include #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif +#endif + #if defined(__linux__) && defined(NEED_TIMEVAL) struct timeval { @@ -64,7 +77,11 @@ struct timeval } ; #endif + +#ifdef HAVE_FCNTL_H #include +#endif + #include #ifdef USE_LIBWRAP @@ -74,8 +91,6 @@ int allow_severity=LOG_INFO; int deny_severity=LOG_WARNING; #endif -#include "rfb.h" - /*#ifndef WIN32 int max(int i,int j) { return(i