summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaphne Pfister <daphnediane@mac.com>2013-09-14 17:36:22 -0400
committerArnaud Fontaine <arnau@debian.org>2013-10-11 18:34:56 +0900
commite4e0c6eec861f4c69da12060dc8dbe7a63fa5eb6 (patch)
tree1f3da5fe12f1e93b511d54eabdae4967e5772ca0
parentf1405d9fe4a6ddcae24585ba254389a4c4f4c8c9 (diff)
Use /usr/spool/sockets/X11/ on HP-UX for UNIX sockets (#69118).
-rw-r--r--src/xcb_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xcb_util.c b/src/xcb_util.c
index 463d085..466dc23 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -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)
{
int fd;
+#ifdef __hpux
+ static const char unix_base[] = "/usr/spool/sockets/X11/";
+#else
static const char unix_base[] = "/tmp/.X11-unix/X";
+#endif
const char *base = unix_base;
size_t filelen;
char *file = NULL;