diff stream/tcp.c @ 27473:ae5da477539e

Move '#define closesocket close' preprocessor directive to a common place and put it under the proper '#ifndef HAVE_CLOSESOCKET' condition.
author diego
date Mon, 01 Sep 2008 07:31:57 +0000
parents c0b233cd30ca
children f1be9f91cbd8
line wrap: on
line diff
--- a/stream/tcp.c	Sun Aug 31 13:59:54 2008 +0000
+++ b/stream/tcp.c	Mon Sep 01 07:31:57 2008 +0000
@@ -25,12 +25,12 @@
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
-#define closesocket close
 #else
 #include <winsock2.h>
 #include <ws2tcpip.h>
 #endif
 
+#include "network.h"
 #include "stream.h"
 #include "tcp.h"