Commit 23413bf1 authored by Christian Beier's avatar Christian Beier

IPv6 support for LibVNCServer, part onepointfive: Fix compilation with IPv6 missing.

There was an oversight that crept in...
parent 83a7c713
...@@ -271,7 +271,11 @@ rfbNewTCPOrUDPClient(rfbScreenInfoPtr rfbScreen, ...@@ -271,7 +271,11 @@ rfbNewTCPOrUDPClient(rfbScreenInfoPtr rfbScreen,
rfbProtocolVersionMsg pv; rfbProtocolVersionMsg pv;
rfbClientIteratorPtr iterator; rfbClientIteratorPtr iterator;
rfbClientPtr cl,cl_; rfbClientPtr cl,cl_;
#ifdef LIBVNCSERVER_IPv6
struct sockaddr_storage addr; struct sockaddr_storage addr;
#else
struct sockaddr_in addr;
#endif
socklen_t addrlen = sizeof(addr); socklen_t addrlen = sizeof(addr);
rfbProtocolExtension* extension; rfbProtocolExtension* extension;
......
...@@ -380,7 +380,11 @@ rfbProcessNewConnection(rfbScreenInfoPtr rfbScreen) ...@@ -380,7 +380,11 @@ rfbProcessNewConnection(rfbScreenInfoPtr rfbScreen)
{ {
const int one = 1; const int one = 1;
int sock = -1; int sock = -1;
#ifdef LIBVNCSERVER_IPv6
struct sockaddr_storage addr; struct sockaddr_storage addr;
#else
struct sockaddr_in addr;
#endif
socklen_t addrlen = sizeof(addr); socklen_t addrlen = sizeof(addr);
fd_set listen_fds; fd_set listen_fds;
int chosen_listen_sock = -1; int chosen_listen_sock = -1;
......
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