summaryrefslogtreecommitdiffstats
path: root/uirdesktop/tcp.c
diff options
context:
space:
mode:
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