From 231763cb0e93b1600923aa77f1572c55900285d7 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Thu, 3 May 2012 17:18:22 +0200 Subject: LibVNCClient: #undef these types in case it's WIN32. The various other headers include windows.h and the winsock headers which give an error when SOCKET and socklen_t are already defined. --- libvncclient/rfbproto.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libvncclient') diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 70fab19..8064b56 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -35,6 +35,10 @@ #endif #include #include +#ifdef WIN32 +#undef SOCKET +#undef socklen_t +#endif #ifdef LIBVNCSERVER_HAVE_LIBZ #include #ifdef __CHECKER__ @@ -52,10 +56,6 @@ #include #ifdef LIBVNCSERVER_WITH_CLIENT_GCRYPT -#ifdef WIN32 -#undef SOCKET -#undef socklen_t -#endif #include #endif -- cgit v1.2.1