diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-08-29 22:55:39 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-08-29 22:55:39 +0000 |
commit | c152b07e661cbc274cd4979e6b5e053a64656476 (patch) | |
tree | 095a8e6af4d608af6c36496227665b14ac6d4921 /stream/rtp.c | |
parent | 2a90e559a97e6a77f2caaf8975f4333c2b8766f3 (diff) | |
download | mpv-c152b07e661cbc274cd4979e6b5e053a64656476.tar.bz2 mpv-c152b07e661cbc274cd4979e6b5e053a64656476.tar.xz |
Move duplicated '#define closesocket close' into network.h along with
network-related #include #ifdeffery.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27496 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/rtp.c')
-rw-r--r-- | stream/rtp.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/stream/rtp.c b/stream/rtp.c index f4b84fc3b4..c2a3857651 100644 --- a/stream/rtp.c +++ b/stream/rtp.c @@ -12,17 +12,9 @@ #include <stdio.h> #include <sys/types.h> #include <ctype.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 "config.h" +#include "network.h" #include "stream.h" /* MPEG-2 TS RTP stack */ |