Commit 231763cb authored by Christian Beier's avatar Christian Beier

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.
parent 3e0cf05e
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
#endif #endif
#include <errno.h> #include <errno.h>
#include <rfb/rfbclient.h> #include <rfb/rfbclient.h>
#ifdef WIN32
#undef SOCKET
#undef socklen_t
#endif
#ifdef LIBVNCSERVER_HAVE_LIBZ #ifdef LIBVNCSERVER_HAVE_LIBZ
#include <zlib.h> #include <zlib.h>
#ifdef __CHECKER__ #ifdef __CHECKER__
...@@ -52,10 +56,6 @@ ...@@ -52,10 +56,6 @@
#include <time.h> #include <time.h>
#ifdef LIBVNCSERVER_WITH_CLIENT_GCRYPT #ifdef LIBVNCSERVER_WITH_CLIENT_GCRYPT
#ifdef WIN32
#undef SOCKET
#undef socklen_t
#endif
#include <gcrypt.h> #include <gcrypt.h>
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment