From a92f7f46a675a3533a0a89b6fe2d509e43a2aa8f Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Fri, 2 Oct 2009 14:44:10 +0200 Subject: mingw32 crosscompile fixes. SOCKET is redefined in winsock2.h so #undef it where winsock2.h is included. The changes in rfbproto.c circumvent crosscompiler errors like 'S_IFMT' undeclared ...', the Makefile.am changes avoid building linux specific stuff for a win32 host target. Also added configure option to specify sdl-config. Signed-off-by: Christian Beier Signed-off-by: Johannes Schindelin --- libvncclient/rfbproto.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libvncclient/rfbproto.c') diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index fb724f5..9d180ce 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -344,6 +344,7 @@ DefaultSupportedMessagesTightVNC(rfbClient* client) SetServer2Client(client, rfbTextChat); } +#ifndef WIN32 static rfbBool IsUnixSocket(const char *name) { @@ -352,6 +353,7 @@ IsUnixSocket(const char *name) return TRUE; return FALSE; } +#endif /* * ConnectToRFBServer. -- cgit v1.2.1