From 4f8e2d60ed0edcf489f4db4eb90460f33c0b70d4 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Mon, 26 Jun 2006 00:33:04 +0000 Subject: linux EOL --- uirdesktop/tcp.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'uirdesktop/tcp.c') diff --git a/uirdesktop/tcp.c b/uirdesktop/tcp.c index 35097263..597bacd1 100644 --- a/uirdesktop/tcp.c +++ b/uirdesktop/tcp.c @@ -28,22 +28,22 @@ #include /* inet_addr */ #include /* errno */ #endif /* _WIN32 */ - -#include "rdesktop.h" - -#ifdef _WIN32 -#define socklen_t int -#define TCP_CLOSE(_sck) closesocket(_sck) -#define TCP_STRERROR "tcp error" -#define TCP_SLEEP(_n) Sleep(_n) -#define TCP_BLOCKS (WSAGetLastError() == WSAEWOULDBLOCK) -#else /* _WIN32 */ -#define TCP_CLOSE(_sck) close(_sck) -#define TCP_STRERROR strerror(errno) -#define TCP_SLEEP(_n) sleep(_n) -#define TCP_BLOCKS (errno == EWOULDBLOCK) -#endif /* _WIN32 */ - + +#include "rdesktop.h" + +#ifdef _WIN32 +#define socklen_t int +#define TCP_CLOSE(_sck) closesocket(_sck) +#define TCP_STRERROR "tcp error" +#define TCP_SLEEP(_n) Sleep(_n) +#define TCP_BLOCKS (WSAGetLastError() == WSAEWOULDBLOCK) +#else /* _WIN32 */ +#define TCP_CLOSE(_sck) close(_sck) +#define TCP_STRERROR strerror(errno) +#define TCP_SLEEP(_n) sleep(_n) +#define TCP_BLOCKS (errno == EWOULDBLOCK) +#endif /* _WIN32 */ + #ifndef INADDR_NONE #define INADDR_NONE ((unsigned long) -1) #endif -- cgit v1.2.3