Use /usr/spool/sockets/X11/ on HP-UX for UNIX sockets (#69118).
This commit is contained in:
parent
f1405d9fe4
commit
e4e0c6eec8
|
@ -168,7 +168,11 @@ static int _xcb_open_abstract(char *protocol, const char *file, size_t filelen);
|
||||||
static int _xcb_open(const char *host, char *protocol, const int display)
|
static int _xcb_open(const char *host, char *protocol, const int display)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
#ifdef __hpux
|
||||||
|
static const char unix_base[] = "/usr/spool/sockets/X11/";
|
||||||
|
#else
|
||||||
static const char unix_base[] = "/tmp/.X11-unix/X";
|
static const char unix_base[] = "/tmp/.X11-unix/X";
|
||||||
|
#endif
|
||||||
const char *base = unix_base;
|
const char *base = unix_base;
|
||||||
size_t filelen;
|
size_t filelen;
|
||||||
char *file = NULL;
|
char *file = NULL;
|
||||||
|
|
Loading…
Reference in New Issue