summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2008-12-02 08:33:00 +0000
committerPeter Åstrand <astrand@cendio.se>2008-12-02 08:33:00 +0000
commitddfa1a1a74c7018637a8e0c6169de12554dc7eab (patch)
tree751a6efd7141dce7e7013849916ecda077cd86a8 /common
parentbe1c5d458532e09e0e04981cccdf4d7db3704427 (diff)
downloadtigervnc-ddfa1a1a74c7018637a8e0c6169de12554dc7eab.tar.gz
tigervnc-ddfa1a1a74c7018637a8e0c6169de12554dc7eab.zip
Define VNC_SOCKLEN_T if not defined - needed for Visual Studio build.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3279 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rw-r--r--common/network/TcpSocket.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx
index 4b9da3bc..a45e535b 100644
--- a/common/network/TcpSocket.cxx
+++ b/common/network/TcpSocket.cxx
@@ -25,6 +25,9 @@
#include <winsock2.h>
#define errorNumber WSAGetLastError()
#define snprintf _snprintf
+#ifndef VNC_SOCKLEN_T
+#define VNC_SOCKLEN_T int
+#endif
#else
#define errorNumber errno
#define closesocket close