summaryrefslogtreecommitdiff
path: root/Xtrans.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-07 03:49:05 -0800
committerKeith Packard <keithp@keithp.com>2013-11-07 03:49:05 -0800
commit6b54b5cf8086f127aa87096e2bdd2263d1c81683 (patch)
treee52217bdef7d2ec21a7409002e504f2ec84a9384 /Xtrans.c
parentf3709f3e0b883a0b4956313f89fa931e9264c346 (diff)
Actually disable all of the FD passing code unless XTRANS_SEND_FDS is set
Stick all of the functions relating to FD passing inside Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xtrans.c')
-rw-r--r--Xtrans.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xtrans.c b/Xtrans.c
index be9a057..735d7b8 100644
--- a/Xtrans.c
+++ b/Xtrans.c
@@ -879,6 +879,7 @@ TRANS(Writev) (XtransConnInfo ciptr, struct iovec *buf, int size)
return ciptr->transptr->Writev (ciptr, buf, size);
}
+#if XTRANS_SEND_FDS
int
TRANS(SendFd) (XtransConnInfo ciptr, int fd, int do_close)
{
@@ -890,6 +891,7 @@ TRANS(RecvFd) (XtransConnInfo ciptr)
{
return ciptr->transptr->RecvFd(ciptr);
}
+#endif
int
TRANS(Disconnect) (XtransConnInfo ciptr)