summaryrefslogtreecommitdiffstats
path: root/stream/network.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2008-09-03 10:16:30 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2008-09-03 10:16:30 +0300
commitb56858342fdbe48489618107df75e5bd0451eb0b (patch)
tree5d41ef858502bae99dcbebdd728d42a6040adb03 /stream/network.h
parent8ea7eb77fc7ba8bd0b596ea32ee60909a012828f (diff)
parentbae94777d7ddaa2d4763507fdb93b9520327c9d1 (diff)
downloadmpv-b56858342fdbe48489618107df75e5bd0451eb0b.tar.bz2
mpv-b56858342fdbe48489618107df75e5bd0451eb0b.tar.xz
Merge svn changes up to r27514
Diffstat (limited to 'stream/network.h')
-rw-r--r--stream/network.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/stream/network.h b/stream/network.h
index 2d3b96166e..1f06a5ca14 100644
--- a/stream/network.h
+++ b/stream/network.h
@@ -12,7 +12,7 @@
#include <sys/types.h>
#include "config.h"
-#ifndef HAVE_WINSOCK2
+#ifndef HAVE_WINSOCK2_H
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
@@ -22,6 +22,10 @@
#include "url.h"
#include "http.h"
+#ifndef HAVE_CLOSESOCKET
+#define closesocket close
+#endif
+
#define BUFFER_SIZE 2048
typedef struct {