[Xcb-commit] libxcb: src

Arnaud Fontaine arnau at kemper.freedesktop.org
Fri Oct 11 02:35:32 PDT 2013


 src/xcb_util.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit e4e0c6eec861f4c69da12060dc8dbe7a63fa5eb6
Author: Daphne Pfister <daphnediane at mac.com>
Date:   Sat Sep 14 17:36:22 2013 -0400

    Use /usr/spool/sockets/X11/ on HP-UX for UNIX sockets (#69118).

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;


More information about the xcb-commit mailing list