summaryrefslogtreecommitdiff
path: root/Xtrans.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-08-21 19:08:19 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-08-21 19:08:19 -0700
commit049932c0171855aa6d55222947f4d47495b6f173 (patch)
tree6d7f0729dced038a01d1688a46b1a7af9762e401 /Xtrans.c
parent11391a1ffe4c633507406d2a1ed5abe57c8698db (diff)
downloadxorg-lib-libxtrans-049932c0171855aa6d55222947f4d47495b6f173.tar.gz
Merge Solaris named pipe transport support into LOCALCONN
Also clean up #ifdefs in Xtranslcl for which transport types are supported Add "pipe" alias for named pipe transport on Solaris to match Solaris Xlib.
Diffstat (limited to 'Xtrans.c')
-rw-r--r--Xtrans.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Xtrans.c b/Xtrans.c
index 056804f..82ab729 100644
--- a/Xtrans.c
+++ b/Xtrans.c
@@ -80,6 +80,7 @@ from The Open Group.
#define TRANS_LOCAL_ISC_INDEX 12
#define TRANS_LOCAL_SCO_INDEX 13
#define TRANS_SOCKET_INET6_INDEX 14
+#define TRANS_LOCAL_PIPE_INDEX 15
static
@@ -116,7 +117,9 @@ Xtransport_table Xtransports[] = {
#ifdef SVR4
{ &TRANS(NAMEDFuncs), TRANS_LOCAL_NAMED_INDEX },
#endif
-#ifndef sun
+#ifdef sun
+ { &TRANS(PIPEFuncs), TRANS_LOCAL_PIPE_INDEX },
+#else /* !sun */
#if !defined(__SCO__) && !defined(__UNIXWARE__)
{ &TRANS(ISCFuncs), TRANS_LOCAL_ISC_INDEX },
#endif