os/xdmcp.c: Include Xtrans.h when building for WIN32
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 <colin.harrison@virgin.net>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
(cherry picked from commit 8363ef2764
)
This commit is contained in:
parent
2a2f676dce
commit
5ea517fd39
|
@ -19,6 +19,10 @@
|
|||
|
||||
#ifdef WIN32
|
||||
#include <X11/Xwinsock.h>
|
||||
#define XSERV_t
|
||||
#define TRANS_SERVER
|
||||
#define TRANS_REOPEN
|
||||
#include <X11/Xtrans/Xtrans.h>
|
||||
#endif
|
||||
|
||||
#include <X11/Xos.h>
|
||||
|
|
Loading…
Reference in New Issue