From c763fe51b8ff18e204caab9cf97376a1b72324f0 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Fri, 4 Nov 2011 13:17:50 -0500 Subject: [PATCH] hw/xwin: Fix duplicate definition of HAS_WINSOCK when building for MinGW hw/xwin: Fix duplicate definition of HAS_WINSOCK when building for MinGW but still provide it if building for Win32 without autotools xserver/hw/xwin/winclipboard.h:42:0: warning: "HAS_WINSOCK" redefined ../../include/xwin-config.h:11:0: note: this is the location of the previous definition Signed-off-by: Ryan Pavlik Reviewed-by: Colin Harrison Reviewed-by: Jon TURNEY --- hw/xwin/winclipboard.h | 1 - hw/xwin/winclipboardthread.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xwin/winclipboard.h b/hw/xwin/winclipboard.h index 089c2913b..6b5249fd1 100644 --- a/hw/xwin/winclipboard.h +++ b/hw/xwin/winclipboard.h @@ -39,7 +39,6 @@ #include #else #include -#define HAS_WINSOCK #endif #include #include diff --git a/hw/xwin/winclipboardthread.c b/hw/xwin/winclipboardthread.c index e7df4527e..908dfcea2 100644 --- a/hw/xwin/winclipboardthread.c +++ b/hw/xwin/winclipboardthread.c @@ -32,6 +32,8 @@ #ifdef HAVE_XWIN_CONFIG_H #include +#else +#define HAS_WINSOCK 1 #endif #include #include "winclipboard.h"