return _xcb_parse_display(name, host, NULL, displayp, screenp);
}
return _xcb_parse_display(name, host, NULL, displayp, screenp);
}
static int _xcb_open_unix(char *protocol, const char *file);
#ifdef DNETCONN
static int _xcb_open_decnet(const char *host, char *protocol, const unsigned short port);
static int _xcb_open_unix(char *protocol, const char *file);
#ifdef DNETCONN
static int _xcb_open_decnet(const char *host, char *protocol, const unsigned short port);
#ifdef DNETCONN
/* DECnet displays have two colons, so _xcb_parse_display will have
left one at the end. However, an IPv6 address can end with *two*
#ifdef DNETCONN
/* DECnet displays have two colons, so _xcb_parse_display will have
left one at the end. However, an IPv6 address can end with *two*
unsigned short port = X_TCP_PORT + display;
return _xcb_open_tcp(host, protocol, port);
}
unsigned short port = X_TCP_PORT + display;
return _xcb_open_tcp(host, protocol, port);
}
actual_filelen = snprintf(file, filelen, "%s:%d", base, display);
else
#endif
actual_filelen = snprintf(file, filelen, "%s:%d", base, display);
else
#endif
- if (protocol && strcmp("tcp",protocol))
+ if (protocol && strcmp("tcp",protocol) && strcmp("inet",protocol)
+#ifdef AF_INET6
+ && strcmp("inet6",protocol)
+#endif
+ )