changeset 27474:fbef1306dab4

Put '#define closesocket close' under proper '#ifndef HAVE_CLOSESOCKET' preprocessor condition.
author diego
date Mon, 01 Sep 2008 07:35:05 +0000
parents ae5da477539e
children 9aec3687584a
files libvo/vo_bl.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_bl.c	Mon Sep 01 07:31:57 2008 +0000
+++ b/libvo/vo_bl.c	Mon Sep 01 07:35:05 2008 +0000
@@ -35,7 +35,6 @@
 #include "config.h"
 
 #ifndef HAVE_WINSOCK2_H
-#define closesocket close
 #include <netdb.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -49,6 +48,10 @@
 #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",