summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-01 22:34:27 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-01 22:34:27 +0000
commit83651c8bfa3146e2ea984100754319a09d1a665e (patch)
tree2d18e07664800c2c5213dd46ba4c617352ee0ca8
parent8e320c91e9e8ba020384eea90cc5ce882adbec1a (diff)
downloadmpv-83651c8bfa3146e2ea984100754319a09d1a665e.tar.bz2
mpv-83651c8bfa3146e2ea984100754319a09d1a665e.tar.xz
Remove Windows-specific #ifdefs, the file does not compile on MinGW anyway.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27513 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_bl.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/libvo/vo_bl.c b/libvo/vo_bl.c
index aa1bea1128..23c1af0886 100644
--- a/libvo/vo_bl.c
+++ b/libvo/vo_bl.c
@@ -34,13 +34,9 @@
#include "config.h"
-#ifndef HAVE_WINSOCK2_H
#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"
@@ -48,10 +44,6 @@
#include "m_option.h"
#include "fastmemcpy.h"
-#ifndef HAVE_CLOSESOCKET
-#define closesocket close
-#endif
-
static const vo_info_t info =
{
"Blinkenlights driver: http://www.blinkenlights.de",
@@ -190,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;
@@ -202,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