diff stream/tcp.c @ 27464:be85aae103f2

Move duplicated '#define closesocket close' into network.h along with network-related #include #ifdeffery.
author diego
date Fri, 29 Aug 2008 22:55:39 +0000
parents 5a30f5bc23a0
children c0b233cd30ca
line wrap: on
line diff
--- a/stream/tcp.c	Fri Aug 29 22:29:27 2008 +0000
+++ b/stream/tcp.c	Fri Aug 29 22:55:39 2008 +0000
@@ -19,18 +19,7 @@
 
 #include "mp_msg.h"
 #include "help_mp.h"
-
-#ifndef HAVE_WINSOCK2_H
-#include <netdb.h>
-#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"