Mercurial > mplayer.hg
diff stream/rtp.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/rtp.c Fri Aug 29 22:29:27 2008 +0000 +++ b/stream/rtp.c Fri Aug 29 22:55:39 2008 +0000 @@ -12,17 +12,9 @@ #include <stdio.h> #include <sys/types.h> #include <ctype.h> +#include <errno.h> #include "config.h" -#ifndef HAVE_WINSOCK2_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 <errno.h> +#include "network.h" #include "stream.h" /* MPEG-2 TS RTP stack */
