From 8363ef2764fe9c6877d1cb21d3ce7b6cf869f00d Mon Sep 17 00:00:00 2001 From: Colin Harrison Date: Fri, 20 Mar 2015 14:06:49 +0000 Subject: [PATCH] os/xdmcp.c: Include Xtrans.h when building for WIN32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Xtrans.h must be included on WIN32 to prototype _XSERVTransWSAStartup() xserver/os/xdmcp.c: In function ‘get_addr_by_name’: xserver/os/xdmcp.c:1483:5: error: implicit declaration of function ‘_XSERVTransWSAStartup’ [-Werror=implicit-function-declaration] Signed-off-by: Colin Harrison Reviewed-by: Jon TURNEY --- os/xdmcp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os/xdmcp.c b/os/xdmcp.c index bc5a70706..b265db338 100644 --- a/os/xdmcp.c +++ b/os/xdmcp.c @@ -19,6 +19,10 @@ #ifdef WIN32 #include +#define XSERV_t +#define TRANS_SERVER +#define TRANS_REOPEN +#include #endif #include