summaryrefslogtreecommitdiffstats
path: root/stream/stream_netstream.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/stream_netstream.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/stream_netstream.c')
-rw-r--r--stream/stream_netstream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/stream_netstream.c b/stream/stream_netstream.c
index 84e10a2c81..734c1f6412 100644
--- a/stream/stream_netstream.c
+++ b/stream/stream_netstream.c
@@ -42,7 +42,7 @@
#include <inttypes.h>
#include <errno.h>
-#ifndef HAVE_WINSOCK2_H
+#if !HAVE_WINSOCK2_H
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -90,7 +90,7 @@ static const struct m_struct_st stream_opts = {
//// When the cache is running we need a lock as
//// fill_buffer is called from another proccess
static int lock_fd(int fd) {
-#ifndef HAVE_WINSOCK2_H
+#if !HAVE_WINSOCK2_H
struct flock lock;
memset(&lock,0,sizeof(struct flock));
@@ -113,7 +113,7 @@ printf("FIXME? should lock here\n");
}
static int unlock_fd(int fd) {
-#ifndef HAVE_WINSOCK2_H
+#if !HAVE_WINSOCK2_H
struct flock lock;
memset(&lock,0,sizeof(struct flock));