summaryrefslogtreecommitdiffstats
path: root/libvo/vo_bl.c
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 /libvo/vo_bl.c
parent8ea7eb77fc7ba8bd0b596ea32ee60909a012828f (diff)
parentbae94777d7ddaa2d4763507fdb93b9520327c9d1 (diff)
downloadmpv-b56858342fdbe48489618107df75e5bd0451eb0b.tar.bz2
mpv-b56858342fdbe48489618107df75e5bd0451eb0b.tar.xz
Merge svn changes up to r27514
Diffstat (limited to 'libvo/vo_bl.c')
-rw-r--r--libvo/vo_bl.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libvo/vo_bl.c b/libvo/vo_bl.c
index 1aaa5c888a..fa3f36d2e3 100644
--- a/libvo/vo_bl.c
+++ b/libvo/vo_bl.c
@@ -34,14 +34,9 @@
#include "config.h"
-#ifndef HAVE_WINSOCK2
-#define closesocket close
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#else
-#include <winsock2.h>
-#endif
#include "video_out.h"
#include "video_out_internal.h"
@@ -187,7 +182,7 @@ static int udp_init(bl_host_t *h) {
if (connect(h->fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
mp_msg(MSGT_VO, MSGL_ERR, "couldn't connect socket for %s\n",
h->name);
- closesocket(h->fd);
+ close(h->fd);
return 1;
}
return 0;
@@ -199,7 +194,7 @@ static void udp_send(bl_host_t *h) {
}
static void udp_close(bl_host_t *h) {
- closesocket(h->fd);
+ close(h->fd);
}
#define NO_BLS 3