summaryrefslogtreecommitdiff
path: root/dist/libxcb/src/xcb_util.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2014-04-14 19:02:18 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2014-04-14 19:02:18 +0000
commit57050dc510d000d442673f264d7966fc90d995e1 (patch)
tree4a722210c34e3c26dd00abd79410843893430679 /dist/libxcb/src/xcb_util.c
parent8ed5a09cec2c9682784fcfcba8dff014fb20212a (diff)
Update libxcb to version 1.10. Tested by naddy@ and shadchin@.
Diffstat (limited to 'dist/libxcb/src/xcb_util.c')
-rw-r--r--dist/libxcb/src/xcb_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dist/libxcb/src/xcb_util.c b/dist/libxcb/src/xcb_util.c
index 463d085f6..466dc23bc 100644
--- a/dist/libxcb/src/xcb_util.c
+++ b/dist/libxcb/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;