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

There was an oversight that crept in...
pull/1/head
Christian Beier 13 years ago
parent 83a7c713a9
commit 23413bf120

@ -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)
{ {
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;

Loading…
Cancel
Save