summaryrefslogtreecommitdiffstats
path: root/stream/pnm.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-01 13:42:27 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-01 13:42:27 +0000
commit0f65d3be9d874251c106d8bab3c43b0439ed5526 (patch)
treefefdee42e83c5ff220f649c12dcaabff22301fff /stream/pnm.c
parent12b79487739ffedd9a74940feebe9d4ef11079dc (diff)
downloadmpv-0f65d3be9d874251c106d8bab3c43b0439ed5526.tar.bz2
mpv-0f65d3be9d874251c106d8bab3c43b0439ed5526.tar.xz
Convert HAVE_WINSOCK2_H into a 0/1 definition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28437 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/pnm.c')
-rw-r--r--stream/pnm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/pnm.c b/stream/pnm.c
index 1ef86e620c..437ad8b0cb 100644
--- a/stream/pnm.c
+++ b/stream/pnm.c
@@ -35,7 +35,7 @@
#include <stdlib.h>
#include <sys/time.h>
#include <inttypes.h>
-#ifndef HAVE_WINSOCK2_H
+#if !HAVE_WINSOCK2_H
#include <sys/socket.h>
//#include <netinet/in.h>
//#include <netdb.h>
@@ -204,7 +204,7 @@ static int rm_write(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)) {