]> git.sesse.net Git - vlc/commitdiff
* modules/control/netsync.c: compilation fix.
authorGildas Bazin <gbazin@videolan.org>
Thu, 22 Sep 2005 21:23:35 +0000 (21:23 +0000)
committerGildas Bazin <gbazin@videolan.org>
Thu, 22 Sep 2005 21:23:35 +0000 (21:23 +0000)
modules/control/netsync.c

index d31f64575c0253ac8b673139f880523c10bcfa72..16219cdfc68dfb4a2dd76ba23303b91dc5771113 100644 (file)
 #ifdef HAVE_UNISTD_H
 #    include <unistd.h>
 #endif
-
 #ifdef HAVE_SYS_TIME_H
 #    include <sys/time.h>
 #endif
-#include <sys/types.h>
-
-#ifdef WIN32
-#   include <winsock2.h>
-#   include <ws2tcpip.h>
-#   ifndef IN_MULTICAST
-#       define IN_MULTICAST(a) IN_CLASSD(a)
-#   endif
-#else
-#   include <sys/socket.h>
-#   include <netinet/in.h>
-#   if HAVE_ARPA_INET_H
-#      include <arpa/inet.h>
-#   elif defined( SYS_BEOS )
-#      include <net/netdb.h>
-#   endif
-#endif
-
-#ifdef UNDER_CE
-#   define close(a) CloseHandle(a);
-#elif defined( WIN32 )
-#   define close(a) closesocket(a);
+#ifdef HAVE_SYS_TYPES_H
+#   include <sys/types.h>
 #endif
 
 #include "network.h"