From 0f65d3be9d874251c106d8bab3c43b0439ed5526 Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 1 Feb 2009 13:42:27 +0000 Subject: Convert HAVE_WINSOCK2_H into a 0/1 definition. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28437 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/librtsp/rtsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stream/librtsp/rtsp.c') diff --git a/stream/librtsp/rtsp.c b/stream/librtsp/rtsp.c index 19477fe5b3..8012174d99 100644 --- a/stream/librtsp/rtsp.c +++ b/stream/librtsp/rtsp.c @@ -42,7 +42,7 @@ #include #include #include -#ifdef HAVE_WINSOCK2_H +#if HAVE_WINSOCK2_H #include #else #include @@ -72,7 +72,7 @@ static int write_stream(int s, const char *buf, int len) { if (n > 0) total += n; else if (n < 0) { -#ifndef HAVE_WINSOCK2_H +#if !HAVE_WINSOCK2_H if ((timeout>0) && ((errno == EAGAIN) || (errno == EINPROGRESS))) { #else if ((timeout>0) && ((errno == EAGAIN) || (WSAGetLastError() == WSAEINPROGRESS))) { -- cgit v1.2.3