diff options
author | 2008-07-26 20:58:50 +0000 | |
---|---|---|
committer | 2008-07-26 20:58:50 +0000 | |
commit | fb2b4dea1c34e4e75158b5e22b8302d19a090910 (patch) | |
tree | 8864039878f3affec7fc7c8c421b590c501988bf | |
parent | 65f404c85f4f7028401181277313b9589ed810cf (diff) |
Do not include sys/socket.h when using winsock2, it is pointless
and breaks compilation under MinGW.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27352 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | stream/librtsp/rtsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/librtsp/rtsp.c b/stream/librtsp/rtsp.c index d69c684c19..89a3b47584 100644 --- a/stream/librtsp/rtsp.c +++ b/stream/librtsp/rtsp.c @@ -41,10 +41,11 @@ #include <time.h> #include <sys/time.h> #include <sys/types.h> -#include <sys/socket.h> #include <inttypes.h> #ifdef HAVE_WINSOCK2 #include <winsock2.h> +#else +#include <sys/socket.h> #endif #include "mp_msg.h" #include "rtsp.h" |