From 71c5c5c7161e98ce9b521ce2f70f39d67512587e Mon Sep 17 00:00:00 2001 From: Daphne Pfister Date: Sat, 14 Sep 2013 17:36:22 -0400 Subject: [PATCH] Use /usr/spool/sockets/X11/ on HP-UX for UNIX sockets --- src/xcb_util.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 1.7.12.4 (Apple Git-37)