summaryrefslogtreecommitdiffstats
path: root/uirdesktop/tcp.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-06-26 00:33:04 +0000
committerjsorg71 <jsorg71>2006-06-26 00:33:04 +0000
commit4f8e2d60ed0edcf489f4db4eb90460f33c0b70d4 (patch)
tree7e1db59cf604f2d1a874f78700f0bbec0691b9a3 /uirdesktop/tcp.c
parenta2b270e57ab4381f4572ab04338d29f16aec3893 (diff)
downloadxrdp-proprietary-4f8e2d60ed0edcf489f4db4eb90460f33c0b70d4.tar.gz
xrdp-proprietary-4f8e2d60ed0edcf489f4db4eb90460f33c0b70d4.zip
linux EOL
Diffstat (limited to 'uirdesktop/tcp.c')
-rw-r--r--uirdesktop/tcp.c32
1 files changed, 16 insertions, 16 deletions
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 <arpa/inet.h> /* inet_addr */
#include <errno.h> /* 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