Mercurial > mplayer.hg
diff stream/rtp.c @ 27472:c0b233cd30ca
Revert moving closesocket definition and network headers to network.h.
This caused lots of trouble on MinGW, we need a different solution.
| author | diego |
|---|---|
| date | Sun, 31 Aug 2008 13:59:54 +0000 |
| parents | be85aae103f2 |
| children | ae5da477539e |
line wrap: on
line diff
--- a/stream/rtp.c Sun Aug 31 13:56:18 2008 +0000 +++ b/stream/rtp.c Sun Aug 31 13:59:54 2008 +0000 @@ -12,9 +12,17 @@ #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 */
