Disable code that breaks parsing of DISPLAY=unix:0 on OpenBSD

issue reported by tb@, ok tb@
This commit is contained in:
matthieu
2024-07-11 14:17:18 +00:00
parent 83d854c894
commit 0c50e27b4c

View File

@@ -170,8 +170,10 @@ static int _xcb_parse_display(const char *name, char **host, char **protocol,
if (name[0] == '/')
return _xcb_parse_display_path_to_socket(name, host, protocol, displayp, screenp);
#ifndef __OpenBSD__
if (strncmp(name, "unix:", 5) == 0)
return _xcb_parse_display_path_to_socket(name + 5, host, protocol, displayp, screenp);
#endif
slash = strrchr(name, '/');